Samond Classes Library 1.2.6-STABLE build 219
List of all members
NSException(SCException) Category Reference

Standard class NSException functionality extending category. More...

#import <NSException+SCException.h>

Creating Exceptions

(instancetype) + exceptionWithCoder:
 
(instancetype) + exceptionWithContentsOfSerializedFile:
 
(instancetype) + exceptionWithDataDictionary:
 
(instancetype) + exceptionWithDataDictionaryFromFile:
 
(instancetype) + exceptionWithStream:
 
(instancetype) + exceptionWithFileStream:
 
(instancetype) + exceptionWithData:
 
(instancetype) + exceptionWithContentsOfFile:
 
(instancetype) + exceptionWithContentsOfURL:
 
(instancetype) + exceptionWithContentsOfURLString:
 
(instancetype) + exceptionWithException:
 

Initializing Exceptions

(instancetype) - initWithException:
 

Detailed Description

Standard class NSException functionality extending category.

SDK
macOS 10.6+, iOS 7.0+, GNUstep
Since
version 1.2.2

Declares the additional methods for add into the standard class NSException the additional functionality, such as dictionaries, collections and streans support and so on.

Method Documentation

+ (instancetype) exceptionWithCoder: (NSCoder *)  coder

Returns an exception created by using the specified coder.

Parameters
coder- the source coder
Returns
A created exception
+ (instancetype) exceptionWithContentsOfFile: (NSString *)  path

Returns an exception created by using the file with the specified path.

Parameters
path- the path to the source file
Returns
A created exception
+ (instancetype) exceptionWithContentsOfSerializedFile: (NSString *)  path

Returns an exception created by using the content of serialized file with the specified path.

Parameters
path- the source serialized file path
Returns
A created exception
+ (instancetype) exceptionWithContentsOfURL: (NSURL *)  url

Returns an exception created by using the specified URL.

Parameters
url- the source URL
Returns
A created exception
+ (instancetype) exceptionWithContentsOfURLString: (NSString *)  urlString

Returns an exception created by using the data from the URL with the specified string.

Parameters
urlString- the string of the source URL
Returns
A created exception
+ (instancetype) exceptionWithData: (NSData *)  data

Returns an exception created by using the specified data object.

Parameters
data- the source data object
Returns
A created exception
+ (instancetype) exceptionWithDataDictionary: (NSDictionary *)  dictionary

Returns an exception created by using the specified data dictionary.

Parameters
dictionary- the source data dictionary
Returns
A created exception
+ (instancetype) exceptionWithDataDictionaryFromFile: (NSString *)  path

Returns an exception created by using the data dictionary from the specified file.

Parameters
path- the source data dictionary file path
Returns
A created exception
+ (instancetype) exceptionWithException: (NSException *)  exception

Returns an exception created by using the specified existing exception.

Parameters
exception- the source exception
Returns
A created exception
+ (instancetype) exceptionWithFileStream: (NSString *)  path

Returns an exception created by using the data from the file stream with the specified path.

Parameters
path- the path of the source file stream
Returns
A created exception
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
+ (instancetype) exceptionWithStream: (SCStream *)  stream

Returns an exception created by using the data from the specified stream.

Parameters
stream- the source stream
Returns
A created exception
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
- (instancetype) initWithException: (NSException *)  exception

Initializes an exception by using the specified existing exception.

Parameters
exception- the source exception
Returns
A newly initialized exception

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