Samond Classes Library 1.2.6-STABLE build 219
SCSystemException.h
Go to the documentation of this file.
1 //
2 // SCSystemException.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 22.03.12.
6 // Copyright (c) 2007 - 2018 by Samond Development Corporation. All rights reserved.
7 //
8 
24 #import <Foundation/Foundation.h>
25 #import <scl/SCException.h>
26 
27 #pragma mark -
28 #pragma mark Class Constants
29 
38 #define SCSystemExceptionClass @"SCSystemException"
39 
44 #define SCSystemErrorName @"SCSystem"
45 
46 
47 #pragma mark -
48 #pragma mark Error Codes and IDs
49 
58 #define SCSystemErrorCode -20002
59 
64 #define SCSystemEID @"SCL-20002"
65 
70 #define SCUnspecifiedSystemError 0
71 
72 #pragma mark -
73 #pragma mark System Error Types
74 
84 
102  SCSystemError _error; // System error ID
103  NSString *_objectName; // Erroneous object name
104 }
105 #pragma mark -
106 #pragma mark Instance Properties
107 
116 @property (nonatomic, readonly, assign) SCSystemError error;
117 
122 @property (nonatomic, readonly, retain) NSString *objectName;
123 
126 #pragma mark -
127 #pragma mark Creating Class Instances (SCL-20002)
128 + (instancetype)exceptionWithError:(SCSystemError)error object:(NSString *)object;
129 + (instancetype)exceptionWithError:(SCSystemError)error;
130 + (instancetype)exception;
131 
132 @end
int32_t SCInteger
Definition: SCTypes.h:149
Parent class of all library exceptions.
Definition: SCException.h:72
System error exception class.
Definition: SCSystemException.h:101
SCInteger SCSystemError
Definition: SCSystemException.h:83
Exception SCException header file.