Samond Classes Library 1.2.6-STABLE build 219
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 - 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 SCNumberExceptionClass @"SCNumberException"
39 
44 #define SCNumberErrorName @"SCNumber"
45 
46 
47 #pragma mark
48 #pragma mark Error Codes and IDs
49 
58 #define SCNumberErrorUnspecified -20010
59 
64 #define SCNumberErrorUnsupported -20011
65 
70 #define SCNumberEIDUnspecified @"SCL-20010"
71 
76 #define SCNumberEIDUnupported @"SCL-20011"
77 
78 
79 #pragma mark -
80 
102  NSString *_unsupportedType; // Name of the unsupported number object type
103 }
104 #pragma mark -
105 #pragma mark Instance Properties
106 
115 @property (nonatomic, readonly, retain) NSString *unsupportedType;
116 
119 #pragma mark -
120 #pragma mark Creating and Initializing Unspecified Number Object Exception
121 + (instancetype)exceptionWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
122 + (instancetype)exception;
123 - (instancetype)initWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
124 
125 #pragma mark -
126 #pragma mark Creating Unsupported Number Object Type Exception (SCL-20011)
127 + (instancetype)exceptionWithUnsupportedType:(NSString *)type;
128 + (instancetype)exceptionWithNumberUnsupportedType;
129 
130 @end
int32_t SCInteger
Definition: SCTypes.h:149
Parent class of all library exceptions.
Definition: SCException.h:72
Number object exceptions class.
Definition: SCNumberException.h:101
Exception SCException header file.