Samond Classes Library 1.2.1-RELEASE build 181
SCSystemException.h
См. документацию.
1 //
2 // SCSystemException.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 22.03.12.
6 // Copyright (c) 2007 - 2017 by Samond Development Corporation. All rights reserved.
7 //
8 
24 #import <scl/SCException.h>
25 
26 #pragma mark -
27 #pragma mark Class Constants
28 
33 #define SCSystemExceptionClass @"SCSystemException"
34 #define SCSystemErrorName @"SCSystem"
36 
38 #pragma mark -
39 #pragma mark Error Codes and IDs
40 
45 #define SCSystemErrorCode -20002
46 #define SCSystemEID @"SCL-20002"
48 #define SCUnspecifiedSystemError 0
50 
52 #pragma mark -
53 #pragma mark System Error Types
54 
70 
88  SCSystemError fError; // System error ID
89  NSString *fObjectName; // Erroneous object name
90 }
91 #pragma mark -
92 #pragma mark Instance Properties
93 
102 @property (nonatomic, assign, readonly, getter=error) SCSystemError error;
103 
108 @property (nonatomic, retain, readonly, getter=objectName) NSString *objectName;
109 
112 #pragma mark -
113 #pragma mark Accessing Class Instance Properties
114 - (SCSystemError)error;
115 - (NSString *)objectName;
116 
117 #pragma mark -
118 #pragma mark Creating and Initializing Class Instances (SCL-20002)
119 + (instancetype)exceptionWithError:(SCSystemError)error object:(NSString *)object;
120 + (instancetype)exceptionWithError:(SCSystemError)error;
121 + (instancetype)exception;
122 - (instancetype)initWithError:(SCSystemError)error object:(NSString *)object;
123 - (instancetype)initWithError:(SCSystemError)error;
124 - (instancetype)init;
125 
126 @end
int32_t SCInteger
Definition: SCTypes.h:52
Общий предок всех классов исключительных ситуаций библиотеки
Definition: SCException.h:56
Класс исключительной ситуации системной ошибки
Definition: SCSystemException.h:87
NSString * objectName
Definition: SCSystemException.h:108
SCSystemError error
Definition: SCSystemException.h:102
SCInteger SCSystemError
Тип системных ошибок
Definition: SCSystemException.h:69