Samond Classes Library 1.2.0-RELEASE build 166
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 
23 #import <scl/SCException.h>
24 
25 #pragma mark -
26 #pragma mark Константы класса
27 
32 #define SCNumberExceptionClass @"SCNumberException"
33 #define SCNumberErrorName @"SCNumber"
35 
42 #define SCNumberErrorUnspecified -20010
43 #define SCNumberErrorUnsupported -20011
45 #define SCNumberEIDUnspecified @"SCL-20010"
47 #define SCNumberEIDUnupported @"SCL-20011"
49 
51 #pragma mark -
52 
73  NSString *fUnsupportedType; // Название неподдерживаемого типа числового объекта
74 }
75 #pragma mark -
76 #pragma mark Свойства экземпляра класса
77 
86 @property (retain, readonly, getter=unsupportedType) NSString *unsupportedType;
87 
90 #pragma mark -
91 #pragma mark Методы доступа к свойствам экземпляра класса
92 - (NSString *)unsupportedType;
93 
94 #pragma mark -
95 #pragma mark Создание и инициализация исключительной ситуации числового объекта
96 + (SCNumberException *)exceptionWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
97 + (SCNumberException *)exception;
98 - (id)initWithReason:(NSString *)reason code:(SCInteger)code eid:(NSString *)eid;
99 - (id)init;
100 
101 #pragma mark -
102 #pragma mark Создание и инициализация исключительной ситуации неподдерживаемого типа объекта
103 + (SCNumberException *)exceptionWithUnsupportedType:(NSString *)type;
104 + (SCNumberException *)exceptionWithNumberUnsupportedType;
105 - (id)initWithUnsupportedType:(NSString *)type;
106 - (id)initWithNumberUnsupportedType;
107 
108 @end
int32_t SCInteger
Definition: SCTypes.h:48
Parent class of all library exceptions.
Definition: SCException.h:52
NSString * unsupportedType
Definition: SCNumberException.h:86
Number object exceptions class.
Definition: SCNumberException.h:72