5 // Created by C.W. Betts on 10/13/14.
6 // Copyright (c) 2014 Sparkle Project. All rights reserved.
12 #if __has_feature(modules)
15 #import <Foundation/Foundation.h>
20 * Error domain used by Sparkle
22 SU_EXPORT
extern NSString
*const SUSparkleErrorDomain
;
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 SURunningTranslocated
= 1004,
33 SUWebKitTerminationError
= 1005,
35 // Download phase errors.
36 SUTemporaryDirectoryError
= 2000,
37 SUDownloadError
= 2001,
39 // Extraction phase errors.
40 SUUnarchivingError
= 3000,
41 SUSignatureError
= 3001,
43 // Installation phase errors.
44 SUFileCopyFailure
= 4000,
45 SUAuthenticationFailure
= 4001,
46 SUMissingUpdateError
= 4002,
47 SUMissingInstallerToolError
= 4003,
48 SURelaunchError
= 4004,
49 SUInstallationError
= 4005,
50 SUDowngradeError
= 4006,
51 SUInstallationCancelledError
= 4007,
53 // System phase errors
54 SUSystemPowerOffError
= 5000
56 #pragma clang diagnostic pop