2019-05-30 17:10:50 -07:00
|
|
|
//
|
|
|
|
|
// NSError+ALTServerError.h
|
|
|
|
|
// AltStore
|
|
|
|
|
//
|
|
|
|
|
// Created by Riley Testut on 5/30/19.
|
|
|
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
|
|
extern NSErrorDomain const AltServerErrorDomain;
|
2019-06-18 16:37:54 -07:00
|
|
|
extern NSErrorDomain const AltServerInstallationErrorDomain;
|
2019-05-30 17:10:50 -07:00
|
|
|
|
2020-03-05 14:49:21 -08:00
|
|
|
extern NSErrorUserInfoKey const ALTUnderlyingErrorCodeErrorKey;
|
|
|
|
|
extern NSErrorUserInfoKey const ALTProvisioningProfileBundleIDErrorKey;
|
|
|
|
|
|
2019-05-30 17:10:50 -07:00
|
|
|
typedef NS_ERROR_ENUM(AltServerErrorDomain, ALTServerError)
|
|
|
|
|
{
|
2020-03-11 13:35:14 -07:00
|
|
|
ALTServerErrorUnderlyingError = -1,
|
|
|
|
|
|
2019-09-13 14:25:26 -07:00
|
|
|
ALTServerErrorUnknown = 0,
|
|
|
|
|
ALTServerErrorConnectionFailed = 1,
|
|
|
|
|
ALTServerErrorLostConnection = 2,
|
2019-05-30 17:10:50 -07:00
|
|
|
|
2019-09-13 14:25:26 -07:00
|
|
|
ALTServerErrorDeviceNotFound = 3,
|
|
|
|
|
ALTServerErrorDeviceWriteFailed = 4,
|
2019-05-30 17:10:50 -07:00
|
|
|
|
2019-09-13 14:25:26 -07:00
|
|
|
ALTServerErrorInvalidRequest = 5,
|
|
|
|
|
ALTServerErrorInvalidResponse = 6,
|
2019-05-30 17:10:50 -07:00
|
|
|
|
2019-09-13 14:25:26 -07:00
|
|
|
ALTServerErrorInvalidApp = 7,
|
|
|
|
|
ALTServerErrorInstallationFailed = 8,
|
|
|
|
|
ALTServerErrorMaximumFreeAppLimitReached = 9,
|
|
|
|
|
ALTServerErrorUnsupportediOSVersion = 10,
|
2019-11-18 14:49:17 -08:00
|
|
|
|
|
|
|
|
ALTServerErrorUnknownRequest = 11,
|
|
|
|
|
ALTServerErrorUnknownResponse = 12,
|
|
|
|
|
|
|
|
|
|
ALTServerErrorInvalidAnisetteData = 13,
|
2020-03-05 14:49:21 -08:00
|
|
|
ALTServerErrorPluginNotFound = 14,
|
|
|
|
|
|
2020-03-11 13:35:14 -07:00
|
|
|
ALTServerErrorProfileNotFound = 15
|
2019-05-30 17:10:50 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface NSError (ALTServerError)
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|