blob: 71472f30aba2082d2a74c5d18264bf3b4acddb44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
//
// SDLErrorConstants.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 10/5/15.
// Copyright © 2015 smartdevicelink. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SDLErrorConstants.h"
#import "SDLResult.h"
NS_ASSUME_NONNULL_BEGIN
#pragma mark Error Domains
typedef NSString SDLErrorDomain;
extern SDLErrorDomain *const SDLErrorDomainLifecycleManager;
extern SDLErrorDomain *const SDLErrorDomainFileManager;
@interface NSError (SDLErrors)
#pragma mark SDLManager
+ (NSError *)sdl_lifecycle_rpcErrorWithDescription:(NSString *)description andReason:(NSString *)reason;
+ (NSError *)sdl_lifecycle_notConnectedError;
+ (NSError *)sdl_lifecycle_notReadyError;
+ (NSError *)sdl_lifecycle_unknownRemoteErrorWithDescription:(NSString *)description andReason:(NSString *)reason;
+ (NSError *)sdl_lifecycle_managersFailedToStart;
+ (NSError *)sdl_lifecycle_startedWithBadResult:(SDLResult)result info:(NSString *)info;
+ (NSError *)sdl_lifecycle_failedWithBadResult:(SDLResult)result info:(NSString *)info;
#pragma mark SDLFileManager
+ (NSError *)sdl_fileManager_cannotOverwriteError;
+ (NSError *)sdl_fileManager_noKnownFileError;
+ (NSError *)sdl_fileManager_unableToStartError;
+ (NSError *)sdl_fileManager_unableToUploadError;
@end
@interface NSException (SDLExceptions)
+ (NSException *)sdl_missingHandlerException;
+ (NSException *)sdl_missingIdException;
@end
NS_ASSUME_NONNULL_END
|