Upgrade to Sparkle 1.21.3.
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUErrors.h
1 //
2 // SUErrors.h
3 // Sparkle
4 //
5 // Created by C.W. Betts on 10/13/14.
6 // Copyright (c) 2014 Sparkle Project. All rights reserved.
7 //
8
9 #ifndef SUERRORS_H
10 #define SUERRORS_H
11
12 #if __has_feature(modules)
13 @import Foundation;
14 #else
15 #import <Foundation/Foundation.h>
16 #endif
17 #import "SUExport.h"
18
19 /**
20 * Error domain used by Sparkle
21 */
22 SU_EXPORT extern NSString *const SUSparkleErrorDomain;
23
24 #pragma clang diagnostic push
25 #pragma clang diagnostic ignored "-Wc++98-compat"
26 typedef NS_ENUM(OSStatus, SUError) {
27 // Appcast phase errors.
28 SUAppcastParseError = 1000,
29 SUNoUpdateError = 1001,
30 SUAppcastError = 1002,
31 SURunningFromDiskImageError = 1003,
32
33 // Download phase errors.
34 SUTemporaryDirectoryError = 2000,
35 SUDownloadError = 2001,
36
37 // Extraction phase errors.
38 SUUnarchivingError = 3000,
39 SUSignatureError = 3001,
40
41 // Installation phase errors.
42 SUFileCopyFailure = 4000,
43 SUAuthenticationFailure = 4001,
44 SUMissingUpdateError = 4002,
45 SUMissingInstallerToolError = 4003,
46 SURelaunchError = 4004,
47 SUInstallationError = 4005,
48 SUDowngradeError = 4006,
49 SUInstallationCancelledError = 4007,
50
51 // System phase errors
52 SUSystemPowerOffError = 5000
53 };
54 #pragma clang diagnostic pop
55
56 #endif