Samond Classes Library 1.2.2-RELEASE build 188
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 - 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 
37 #define SCSystemExceptionClass @"SCSystemException"
38 
43 #define SCSystemErrorName @"SCSystem"
44 
45 
46 #pragma mark -
47 #pragma mark Error Codes and IDs
48 
57 #define SCSystemErrorCode -20002
58 
63 #define SCSystemEID @"SCL-20002"
64 
69 #define SCUnspecifiedSystemError 0
70 
71 #pragma mark -
72 #pragma mark System Error Types
73 
83 
101  SCSystemError fError; // System error ID
102  NSString *fObjectName; // Erroneous object name
103 }
104 #pragma mark -
105 #pragma mark Instance Properties
106 
115 @property (nonatomic, readonly, assign) SCSystemError error;
116 
121 @property (nonatomic, readonly, retain) NSString *objectName;
122 
125 #pragma mark -
126 #pragma mark Creating and Initializing Class Instances (SCL-20002)
127 + (instancetype)exceptionWithError:(SCSystemError)error object:(NSString *)object;
128 + (instancetype)exceptionWithError:(SCSystemError)error;
129 + (instancetype)exception;
130 - (instancetype)initWithError:(SCSystemError)error object:(NSString *)object;
131 - (instancetype)initWithError:(SCSystemError)error;
132 - (instancetype)init;
133 
134 @end
int32_t SCInteger
Definition: SCTypes.h:52
Parent class of all library exceptions.
Definition: SCException.h:71
System error exception class.
Definition: SCSystemException.h:100
SCInteger SCSystemError
Definition: SCSystemException.h:82
Exception SCException header file.