Samond Classes Library 1.2.0-RELEASE build 166
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 
23 #import <scl/SCException.h>
24 
25 #pragma mark -
26 #pragma mark Константы класса
27 
32 #define SCSystemExceptionClass @"SCSystemException"
33 #define SCSystemErrorName @"SCSystem"
35 
37 #pragma mark -
38 #pragma mark Коды и идентификаторы ошибок
39 
44 #define SCSystemErrorCode -20002
45 #define SCSystemEID @"SCL-20002"
47 #define SCUnspecifiedSystemError 0
49 
51 #pragma mark -
52 #pragma mark Типы системных ошибок
53 
69 
86  SCSystemError fError; // Код системной ошибки
87  NSString *fObjectName; // Название вызвавшего системную ошибку объекта
88 }
89 #pragma mark -
90 #pragma mark Свойства экземпляра класса
91 
100 @property (nonatomic, assign, readonly, getter=error) SCSystemError error;
101 
106 @property (nonatomic, retain, readonly, getter=objectName) NSString *objectName;
107 
110 #pragma mark -
111 #pragma mark Методы доступа к свойствам экземпляра класса
112 - (SCSystemError)error;
113 - (NSString *)objectName;
114 
115 #pragma mark -
116 #pragma mark Создание и инициализация экземпляров класса
117 + (SCSystemException *)exceptionWithError:(SCSystemError)error object:(NSString *)object;
118 + (SCSystemException *)exceptionWithError:(SCSystemError)error;
119 + (SCSystemException *)exception;
120 - (id)initWithError:(SCSystemError)error object:(NSString *)object;
121 - (id)initWithError:(SCSystemError)error;
122 - (id)init;
123 
124 @end
int32_t SCInteger
Definition: SCTypes.h:48
Parent class of all library exceptions.
Definition: SCException.h:52
System error exception class.
Definition: SCSystemException.h:85
NSString * objectName
Definition: SCSystemException.h:106
SCSystemError error
Definition: SCSystemException.h:100
SCInteger SCSystemError
System error type.
Definition: SCSystemException.h:68