Samond Classes Library 1.2.6-STABLE build 219
List of all members
SCRuntimeException Class Reference

Exception class SCRuntimeException. More...

#import <SCRuntimeException.h>

+ Inheritance diagram for SCRuntimeException:

Instance Properties

NSString * class_name
 
NSString * type
 
NSString * method
 
NSString * protocol
 
NSString * property
 
NSString * variable
 
NSString * superclass_name
 

Creating and Initializing the Generic Runtime Exceptions

(instancetype) + exceptionWithReason:code:eid:
 
(instancetype) + exception
 
(instancetype) - initWithReason:code:eid:
 

Creating Class Exceptions (SCL-20081)

(instancetype) + exceptionWithUnspecifiedClass
 
(instancetype) + exceptionWithUnspecifiedClassOfMethod:
 
(instancetype) + exceptionWithUnspecifiedClassOfProperty:
 
(instancetype) + exceptionWithUnspecifiedClassOfVariable:
 
(instancetype) + exceptionWithUnspecifiedClassOfProtocol:
 
(instancetype) + exceptionWithDuplicatedClass:
 
(instancetype) + exceptionWithAlreadyRegisteredClass:
 
(instancetype) + exceptionWithRegisteredClass:
 
(instancetype) + exceptionWithUnknownClass:
 
(instancetype) + exceptionWithIncorrectSuperclass:class:
 

Creating Selector Exceptions (SCL-20082)

(instancetype) + exceptionWithUnspecifiedSelectorOfClass:
 
(instancetype) + exceptionWithUnspecifiedSelectorOfProtocol:
 
(instancetype) + exceptionWithUnspecifiedSelector
 

Creating Implementation Exceptions (SCL-20083)

(instancetype) + exceptionWithNullImplementation
 
(instancetype) + exceptionWithNullImplementationOfMethod:class:
 

Creating Type Exceptions (SCL-20084)

(instancetype) + exceptionWithReturnType:method:class:
 
(instancetype) + exceptionWithReturnType:method:
 
(instancetype) + exceptionWithReturnType:
 
(instancetype) + exceptionWithType:property:class:
 
(instancetype) + exceptionWithType:variable:class:
 

Creating Property Exceptions (SCL-20085)

(instancetype) + exceptionWithUnspecifiedPropertyOfClass:
 
(instancetype) + exceptionWithUnspecifiedPropertyOfProtocol:
 
(instancetype) + exceptionWithUnknownProperty:class:
 
(instancetype) + exceptionWithReadOnlyProperty:class:
 

Creating Protocol Exceptions (SCL-20086)

(instancetype) + exceptionWithUnspecifiedProtocol
 
(instancetype) + exceptionWithUnspecifiedProtocolOfClass:
 
(instancetype) + exceptionWithDuplicatedProtocol:
 
(instancetype) + exceptionWithUnknownProtocol:
 
(instancetype) + exceptionWithRegisteredProtocol:
 
(instancetype) + exceptionWithAlreadyRegisteredProtocol:
 

Creating Variable Exceptions (SCL-20087)

(instancetype) + exceptionWithUnspecifiedVariableOfClass:
 
(instancetype) + exceptionWithUnknownVariable:class:
 

Creating Method Exceptions (SCL-20088)

(instancetype) + exceptionWithUnspecifiedMethodOfProtocol:
 
(instancetype) + exceptionWithUnspecifiedMethodOfClass:
 
(instancetype) + exceptionWithUnknownMethod:class:
 
(instancetype) + exceptionWithSignatureOfMethod:class:
 

Additional Inherited Members

- Instance Methods inherited from SCException
(instancetype) - initWithName:reason:code:eid:
 
- Properties inherited from SCException
SCInteger code
 
NSString * eid
 

Detailed Description

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:

Method Documentation

+ (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
class- a class name
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
class- a class name
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
type- a type name
Returns
A created exception
+ (instancetype) exceptionWithReturnType: (NSString *)  type
method: (NSString *)  method 

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
+ (instancetype) exceptionWithReturnType: (NSString *)  type
method: (NSString *)  method
class: (NSString *)  class 

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
method- a method name
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
class- a class name
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
class- a class object
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
class- a class name
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
class- a class
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
protocol- a protocol
Returns
A created exception
+ (instancetype) exceptionWithUnspecifiedVariableOfClass: (Class)  class

Returns an unspecified variable exception SCL-20087 created by using a given class.

Parameters
class- a class object
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

Property Documentation

- (NSString*) class_name
readnonatomicretain

Class name

- (NSString*) method
readnonatomicretain

Method name

- (NSString*) property
readnonatomicretain

Property name

- (NSString*) protocol
readnonatomicretain

Protocol name

- (NSString*) superclass_name
readnonatomicretain

Superclass name

- (NSString*) type
readnonatomicretain

Name of the data type or type encoding

- (NSString*) variable
readnonatomicretain

Instance variable name


The documentation for this class was generated from the following files: