Samond Classes Library 1.2.2-RELEASE build 188
SCNumberException.h
Go to the documentation of this file.
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 
37 #define SCNumberExceptionClass @"SCNumberException"
38 
43 #define SCNumberErrorName @"SCNumber"
44 
45 
46 #pragma mark
47 #pragma mark Error Codes and IDs
48 
57 #define SCNumberErrorUnspecified -20010
58 
63 #define SCNumberErrorUnsupported -20011
64 
69 #define SCNumberEIDUnspecified @"SCL-20010"
70 
75 #define SCNumberEIDUnupported @"SCL-20011"
76 
77 
78 #pragma mark -
79 
101  NSString *fUnsupportedType; // Name of the unsupported number object type
102 }
103 #pragma mark -
104 #pragma mark Instance Properties
105 
114 @property (nonatomic, readonly, retain) NSString *unsupportedType;
115 
118 #pragma mark -
119 #pragma mark Creating and Initializing Unspecified Number Object Exception
120 + (instancetype)exceptionWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
121 + (instancetype)exception;
122 - (instancetype)initWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
123 - (instancetype)init;
124 
125 #pragma mark -
126 #pragma mark Создание и инициализация исключительной ситуации неподдерживаемого типа объекта (SCL-20011)
127 + (instancetype)exceptionWithUnsupportedType:(NSString *)type;
128 + (instancetype)exceptionWithNumberUnsupportedType;
129 - (instancetype)initWithUnsupportedType:(NSString *)type;
130 - (instancetype)initWithNumberUnsupportedType;
131 
132 @end
int32_t SCInteger
Definition: SCTypes.h:52
Parent class of all library exceptions.
Definition: SCException.h:71
Number object exceptions class.
Definition: SCNumberException.h:100
Exception SCException header file.