Exception class SCRuntimeException.
More...
#import <SCRuntimeException.h>
Exception class SCRuntimeException.
- SDK
- macOS 10.6+, iOS 7.0+, GNUstep
- Since
- version 1.2.6
Declares the runtime exceptions.
Generated exceptions correspond to the following errors:
| + (instancetype) exception |
|
|
|
Returns a generic runtime exception SCL-20080 created by using the default settings.
- Returns
- A created exception
| + (instancetype) exceptionWithAlreadyRegisteredClass: |
|
(NSString *) |
class |
|
Returns an already registered class runtime exception SCL-20081 created by using a given class name.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithAlreadyRegisteredProtocol: |
|
(NSString *) |
protocol |
|
Returns an already registered protocol exception SCL-20086 created by using a given protocol name.
- Parameters
-
| protocol | - a protocol name |
- Returns
- A created exception
| + (instancetype) exceptionWithDuplicatedClass: |
|
(NSString *) |
class |
|
Returns a duplicated class runtime exception SCL-20081 created by using a given class name.
- Parameters
-
| class | - a duplicated class name |
- Returns
- A created exception
| + (instancetype) exceptionWithDuplicatedProtocol: |
|
(NSString *) |
protocol |
|
Returns a duplicated protocol exception SCL-20086 created by using a given protocol name.
- Parameters
-
| protocol | - a protocol name |
- Returns
- A created exception
| + (instancetype) exceptionWithIncorrectSuperclass: |
|
(NSString *) |
superclass |
| class: |
|
(NSString *) |
class |
|
|
| |
Returns a superclass runtime exception SCL-20081 created by using the specified superclass and class names.
- Parameters
-
| superclass | - a superclass name |
| class | - a class name |
- Returns
- A created exception
| + (instancetype) exceptionWithNullImplementation |
|
|
|
Returns an implementation runtime exception SCL-20083 created by using the default settings.
- Returns
- A created exception.
| + (instancetype) exceptionWithNullImplementationOfMethod: |
|
(NSString *) |
method |
| class: |
|
(NSString *) |
class |
|
|
| |
Returns an implementation runtime exception SCL-20083 created by using the method name and class name.
- Parameters
-
| method | - a method name |
| class | - a class name |
- Returns
- A created exception.
| + (instancetype) exceptionWithReadOnlyProperty: |
|
(NSString *) |
property |
| class: |
|
(Class) |
class |
|
|
| |
Returns a read only property exception SCL-20085 created by using a given property name and class.
- Parameters
-
| property | - a property name |
| class | - a class object |
- Returns
- A created exception
| + (instancetype) exceptionWithReason: |
|
(NSString *) |
reason |
| code: |
|
(SCInteger) |
code |
| eid: |
|
(NSString *) |
eid |
|
|
| |
Returns an exception created by using the specified error description, error code and error ID.
- Parameters
-
| reason | - error description |
| code | - error code |
| eid | - error ID |
- Returns
- A created exception
| + (instancetype) exceptionWithRegisteredClass: |
|
(NSString *) |
class |
|
Returns a registered class modification runtime exception SCL-20081 created by using the specified class name.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithRegisteredProtocol: |
|
(NSString *) |
protocol |
|
Returns a registered protocol modification exception SCL-20086 created by using a given protocol name.
- Parameters
-
| protocol | - a protocol name |
- Returns
- A created exception
| + (instancetype) exceptionWithReturnType: |
|
(NSString *) |
type |
|
Returns a return type runtime exception SCL-20084 created by using the specified type name.
- Parameters
-
- Returns
- A created exception
Returns a return type runtime exception SCL-20084 created by using the specified type name and method name.
- Parameters
-
| type | - a type name |
| method | - a method name |
- Returns
- A created exception
Returns a return type runtime exception SCL-20084 created by using the specified type name, method name and class name.
- Parameters
-
| type | - a type name |
| method | - a method name |
| class | - a class name |
- Returns
- A created exception
| + (instancetype) exceptionWithSignatureOfMethod: |
|
(NSString *) |
method |
| class: |
|
(NSString *) |
class |
|
|
| |
Returns an unspecified method signature exception SCL-20088 created by using a given method name and class name.
- Parameters
-
| method | - a method name |
| class | - a class name |
- Returns
- A created exception
| + (instancetype) exceptionWithType: |
|
(NSString *) |
type |
| property: |
|
(NSString *) |
property |
| class: |
|
(NSString *) |
class |
|
|
| |
Returns a property type runtime exception SCL-20084 created by using the specified type name, property name and class name.
- Parameters
-
| type | - a type name |
| property | - a property name |
| class | - a class name |
- Returns
- A created exception
| + (instancetype) exceptionWithType: |
|
(NSString *) |
type |
| variable: |
|
(NSString *) |
variable |
| class: |
|
(NSString *) |
class |
|
|
| |
Returns an instance variable type runtime exception SCL-20084 created by using the specified type name, instance variable name and class name.
- Parameters
-
| type | - a type name |
| variable | - an instance variable name |
| class | - a class name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnknownClass: |
|
(NSString *) |
class |
|
Returns an unknown class runtime exception SCL-20081 created by using a given class name.
- Parameters
-
| class | - an unknown class name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnknownMethod: |
|
(NSString *) |
method |
| class: |
|
(NSString *) |
class |
|
|
| |
Returns an unknown method exception SCL-20088 created by using a given method name and class name.
- Parameters
-
| method | - a method name |
| class | - a class name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnknownProperty: |
|
(NSString *) |
property |
| class: |
|
(Class) |
class |
|
|
| |
Returns an unknown property exception SCL-20085 created by using a given property name and class.
- Parameters
-
| property | - a property name |
| class | - a class object |
- Returns
- A created exception
| + (instancetype) exceptionWithUnknownProtocol: |
|
(NSString *) |
protocol |
|
Returns an unknown protocol exception SCL-20086 created by using a given protocol name.
- Parameters
-
| protocol | - a protocol name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnknownVariable: |
|
(NSString *) |
variable |
| class: |
|
(Class) |
class |
|
|
| |
Returns an unknown variable exception SCL-20087 created by using a given variable name and class.
- Parameters
-
| variable | - a variable name |
| class | - a class object |
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedClass |
|
|
|
Returns an unspecified class runtime exception SCL-20081.
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedClassOfMethod: |
|
(NSString *) |
method |
|
Returns an unspecified method class runtime exception SCL-20081 created by using a given method name.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedClassOfProperty: |
|
(NSString *) |
property |
|
Returns an unspecified property class runtime exception SCL-20081 created by using a given property name.
- Parameters
-
| property | - a property name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedClassOfProtocol: |
|
(NSString *) |
protocol |
|
Returns an unspecified class of protocol runtime exception SCL-20081 created by using a given protocol name.
- Parameters
-
| protocol | - a protocol name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedClassOfVariable: |
|
(NSString *) |
variable |
|
Returns an unspecified variable class runtime exception SCL-20081 created by using a given variable name.
- Parameters
-
| variable | - an instance variable name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedMethodOfClass: |
|
(NSString *) |
class |
|
Returns an unspecified method exception SCL-20088 created by using a given class name.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedMethodOfProtocol: |
|
(NSString *) |
protocol |
|
Returns an unspecified method exception SCL-20088 created by using a given protocol name.
- Parameters
-
| protocol | - a protocol name |
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedPropertyOfClass: |
|
(Class) |
class |
|
Returns an unspecified class property exception SCL-20085 created by using a given class.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedPropertyOfProtocol: |
|
(Protocol *) |
protocol |
|
Returns an unspecified protocol property exception SCL-20085 created by using a given protocol.
- Parameters
-
| protocol | - a protocol object |
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedProtocol |
|
|
|
Returns an unspecified protocol exception SCL-20086 created by using the default settings.
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedProtocolOfClass: |
|
(NSString *) |
class |
|
Returns an unspecified protocol exception SCL-20086 created by using a given class name.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedSelector |
|
|
|
Returns an unspecified selector runtime exception SCL-20082.
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedSelectorOfClass: |
|
(Class) |
class |
|
Returns an unspecified class method selector runtime exception SCL-20082 created by using the specified class.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedSelectorOfProtocol: |
|
(SCRuntimeProtocol *) |
protocol |
|
Returns an unspecified protocol method selector runtime exception SCL-20082 created by using the specified protocol.
- Parameters
-
- Returns
- A created exception
| + (instancetype) exceptionWithUnspecifiedVariableOfClass: |
|
(Class) |
class |
|
Returns an unspecified variable exception SCL-20087 created by using a given class.
- Parameters
-
- Returns
- A created exception
| - (instancetype) initWithReason: |
|
(NSString *) |
reason |
| code: |
|
(SCInteger) |
code |
| eid: |
|
(NSString *) |
eid |
|
|
| |
Initializes an exception using the specified error description, error code and error ID.
- Attention
- Designed initializer
- Parameters
-
| reason | - error description |
| code | - error code |
| eid | - error ID |
- Returns
- A newly initialized exception
| - (NSString*) superclass_name |
|
readnonatomicretain |
Name of the data type or type encoding
The documentation for this class was generated from the following files: