Samond Classes Library 1.2.1-RELEASE build 181
SCNumberException.h
См. документацию.
1 //
2 // SCNumberException.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 17.04.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 SCNumberExceptionClass @"SCNumberException"
34 #define SCNumberErrorName @"SCNumber"
36 
38 #pragma mark
39 #pragma mark Error Codes and IDs
40 
45 #define SCNumberErrorUnspecified -20010
46 #define SCNumberErrorUnsupported -20011
48 #define SCNumberEIDUnspecified @"SCL-20010"
50 #define SCNumberEIDUnupported @"SCL-20011"
52 
54 #pragma mark -
55 
77  NSString *fUnsupportedType; // Name of the unsupported number object type
78 }
79 #pragma mark -
80 #pragma mark Instance Properties
81 
90 @property (retain, readonly, getter=unsupportedType) NSString *unsupportedType;
91 
94 #pragma mark -
95 #pragma mark Accessing Class Instance Properties
96 - (NSString *)unsupportedType;
97 
98 #pragma mark -
99 #pragma mark Creating and Initializing Unspecified Number Object Exception
100 + (instancetype)exceptionWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
101 + (instancetype)exception;
102 - (instancetype)initWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
103 - (instancetype)init;
104 
105 #pragma mark -
106 #pragma mark Создание и инициализация исключительной ситуации неподдерживаемого типа объекта (SCL-20011)
107 + (instancetype)exceptionWithUnsupportedType:(NSString *)type;
108 + (instancetype)exceptionWithNumberUnsupportedType;
109 - (instancetype)initWithUnsupportedType:(NSString *)type;
110 - (instancetype)initWithNumberUnsupportedType;
111 
112 @end
int32_t SCInteger
Definition: SCTypes.h:52
Общий предок всех классов исключительных ситуаций библиотеки
Definition: SCException.h:56
NSString * unsupportedType
Definition: SCNumberException.h:90
Класс исключительной ситуации числового объекта
Definition: SCNumberException.h:76