Samond Classes Library 1.2.0-RELEASE build 166
List of all members
SCFileStreamException Class Reference

Exception class SCFileStreamException. More...

#import <SCFileStreamException.h>

Inheritance diagram for SCFileStreamException:
SCStreamException SCException

Instance Properties

SCFileStreamOpenMode openMode
 
SCSystemError seekError
 
SCLong offset
 
SCFileStreamOffsetWhence whence
 

Creating and Initializing Incorrect Open Mode Exception

(id) - initWithOpenMode:path:
 
(id) - initWithOpenMode:
 
(SCFileStreamException *) + exceptionWithOpenMode:path:
 
(SCFileStreamException *) + exceptionWithOpenMode:
 

Creating and Initializing Empty Path Exception

(id) - initWithEmptyPath
 
(SCFileStreamException *) + exceptionWithEmptyPath
 

Creating and Initializing End of Stream Exception

(id) - initWithEndOfFile:
 
(id) - initWithEndOfFile
 
(SCFileStreamException *) + exceptionWithEndOfFile:
 
(SCFileStreamException *) + exceptionWithEndOfFile
 

Creating and Initializing Offset Exception

(id) - initWithSeekError:whence:offset:path:
 
(id) - initWithSeekError:whence:offset:
 
(id) - initWithSeekError:path:
 
(id) - initWithSeekError:
 
(id) - initWithWhence:path:
 
(id) - initWithWhence:
 
(SCFileStreamException *) + exceptionWithSeekError:whence:offset:path:
 
(SCFileStreamException *) + exceptionWithSeekError:whence:offset:
 
(SCFileStreamException *) + exceptionWithSeekError:path:
 
(SCFileStreamException *) + exceptionWithSeekError:
 
(SCFileStreamException *) + exceptionWithWhence:path:
 
(SCFileStreamException *) + exceptionWithWhence:
 

Additional Inherited Members

- Instance Methods inherited from SCStreamException
(id) - initWithStream:reason:code:eid:
 
(id) - initWithReason:code:eid:
 
(id) - initWithStream:
 
(id) - init
 
(id) - initWithNotOpenStream:
 
(id) - initWithNotOpen
 
(id) - initWithReadOnlyStream:
 
(id) - initWithReadOnly
 
(id) - initWithWriteOnlyStream:
 
(id) - initWithWriteOnly
 
(id) - initWithUnknown:stream:
 
(id) - initWithUnknown:
 
(id) - initWithUnexpected:expected:stream:
 
(id) - initWithUnexpected:expected:
 
(id) - initWithUnsupported:stream:
 
(id) - initWithUnsupported:
 
(id) - initWithReaded:waited:stream:
 
(id) - initWithReaded:waited:
 
(id) - initWithWrited:waited:stream:
 
(id) - initWithWrited:waited:
 
(id) - initWithOpenError:stream:
 
(id) - initWithOpenError:
 
(id) - initWithReadError:stream:
 
(id) - initWithReadError:
 
(id) - initWithWriteError:stream:
 
(id) - initWithWriteError:
 
(id) - initWithUnsupportedNumberType:stream:
 
(id) - initWithUnsupportedNumberType:
 
- Instance Methods inherited from SCException
(id) - initWithName:reason:code:eid:
 
- Class Methods inherited from SCStreamException
(SCStreamException *) + exceptionWithStream:reason:code:eid:
 
(SCStreamException *) + exceptionWithReason:code:eid:
 
(SCStreamException *) + exceptionWithStream:
 
(SCStreamException *) + exception
 
(SCStreamException *) + exceptionWithNotOpenStream:
 
(SCStreamException *) + exceptionWithNotOpen
 
(SCStreamException *) + exceptionWithReadOnlyStream:
 
(SCStreamException *) + exceptionWithReadOnly
 
(SCStreamException *) + exceptionWithWriteOnlyStream:
 
(SCStreamException *) + exceptionWithWriteOnly
 
(SCStreamException *) + exceptionWithUnknown:stream:
 
(SCStreamException *) + exceptionWithUnknown:
 
(SCStreamException *) + exceptionWithUnexpected:expected:stream:
 
(SCStreamException *) + exceptionWithUnexpected:expected:
 
(SCStreamException *) + exceptionWithUnsupported:stream:
 
(SCStreamException *) + exceptionWithUnsupported:
 
(SCStreamException *) + exceptionWithReaded:waited:stream:
 
(SCStreamException *) + exceptionWithReaded:waited:
 
(SCStreamException *) + exceptionWithWrited:waited:stream:
 
(SCStreamException *) + exceptionWithWrited:waited:
 
(SCStreamException *) + exceptionWithOpenError:stream:
 
(SCStreamException *) + exceptionWithOpenError:
 
(SCStreamException *) + exceptionWithReadError:stream:
 
(SCStreamException *) + exceptionWithReadError:
 
(SCStreamException *) + exceptionWithWriteError:stream:
 
(SCStreamException *) + exceptionWithWriteError:
 
(SCStreamException *) + exceptionWithUnsupportedNumberType:stream:
 
(SCStreamException *) + exceptionWithUnsupportedNumberType:
 
- Properties inherited from SCStreamException
NSString * streamName
 
NSString * unknown
 
NSString * unexpected
 
NSString * expected
 
NSString * unsupported
 
SCUInteger readedBytes
 
SCUInteger writedBytes
 
SCUInteger waitedBytes
 
SCInteger openError
 
SCInteger readError
 
SCInteger writeError
 
NSString * numberType
 
- Properties inherited from SCException
SCInteger code
 
NSString * eid
 

Detailed Description

Exception class SCFileStreamException.

Since
version 1.1.3

Declares the file stream exceptions.
Generated by the class exceptions correspond to the following errors:

Method Documentation

+ (SCFileStreamException *) exceptionWithEmptyPath

Returns an empty file stream path exception SCL-20034 created by using the default settings.

Returns
A created exception
+ (SCFileStreamException *) exceptionWithEndOfFile

Returns an end of stream exception SCL-20035 created by using the default settings.

Returns
A created exception
+ (SCFileStreamException *) exceptionWithEndOfFile: (NSString *)  file

Returns an end of stream exception SCL-20035 created by using the specified file stream name.

Parameters
file- the name of the file stream
Returns
A created exception
+ (SCFileStreamException *) exceptionWithOpenMode: (SCFileStreamOpenMode mode

Returns an incorrect open mode exception SCL-20033 created by using the specified incorrect mode.

Parameters
mode- the incorrect open mode
Returns
A created exception
+ (SCFileStreamException *) exceptionWithOpenMode: (SCFileStreamOpenMode mode
path: (NSString *)  path 

Returns an incorrect open mode exception SCL-20033 created by using the specified incorrect mode and file stream path.

Parameters
mode- the incorrect open mode
path- the path to the file stream
Returns
A created exception
+ (SCFileStreamException *) exceptionWithSeekError: (SCSystemError error

Returns a seeking exception SCL-20036 created by using the specified seeking error code.

Parameters
error- the seeking error code
Returns
A created exception
+ (SCFileStreamException *) exceptionWithSeekError: (SCSystemError error
path: (NSString *)  path 

Returns a seeking exception SCL-20036 created by using the specified seeking error code and file stream path.

Parameters
error- the seeking error code
path- the path to the file stream
Returns
A created exception
+ (SCFileStreamException *) exceptionWithSeekError: (SCSystemError error
whence: (SCFileStreamOffsetWhence whence
offset: (SCLong offset 

Returns a seeking exception SCL-20036 created by using the specified seeking error code, seeking offset whence and seeking offset.

Parameters
error- the seeking error code
whence- the seeking offset whence
offset- the seeking offset
Returns
A created exception
+ (SCFileStreamException *) exceptionWithSeekError: (SCSystemError error
whence: (SCFileStreamOffsetWhence whence
offset: (SCLong offset
path: (NSString *)  path 

Returns a seeking exception SCL-20036 created by using the specified seeking error code, seeking offset whence, seeking offset and path to the file stream.

Parameters
error- the seeking error code
whence- the seeking offset whence
offset- the seeking offset
path- the file stream path
Returns
A created exception
+ (SCFileStreamException *) exceptionWithWhence: (SCFileStreamOffsetWhence whence

Returns an incorrect offset whence exception SCL-20037 created by using the specified incorrect offset whence.

Parameters
whence- the incorrect offset whence
Returns
A created exception
+ (SCFileStreamException *) exceptionWithWhence: (SCFileStreamOffsetWhence whence
path: (NSString *)  path 

Returns an incorrect offset whence exception SCL-20037 created by using the specified incorrect offset whence and file stream path.

Parameters
whence- the incorrect offset whence
path- the path to the file stream
Returns
A created exception
- (id) initWithEmptyPath

Initializes an empty file stream path exception SCL-20034 by using the default settings.

Returns
A newly initialized exception
- (id) initWithEndOfFile

Initializes an end of stream exception SCL-20035 by using the default settings.

Returns
A newly initialized exception
- (id) initWithEndOfFile: (NSString *)  file

Initializes an end of stream exception SCL-20035 by using the specified file stream name.

Parameters
file- the name of the file stream
Returns
A newly initialized exception
- (id) initWithOpenMode: (SCFileStreamOpenMode mode

Initializes an incorrect open mode exception SCL-20033 by using the specified incorrect mode.

Parameters
mode- the incorrect open mode
Returns
A newly initialized exception
- (id) initWithOpenMode: (SCFileStreamOpenMode mode
path: (NSString *)  path 

Initializes an incorrect open mode exception SCL-20033 by using the specified incorrect mode and file stream path.

Parameters
mode- the incorrect open mode
path- the path to the file stream
Returns
A newly initialized exception
- (id) initWithSeekError: (SCSystemError error

Initializes a seeking exception SCL-20036 by using the specified seeking error code.

Parameters
error- the seeking error code
Returns
A newly initialized exception
- (id) initWithSeekError: (SCSystemError error
path: (NSString *)  path 

Initializes a seeking exception SCL-20036 by using the specified seeking error code and file stream path.

Parameters
error- the seeking error code
path- the path to the file stream
Returns
A newly initialized exception
- (id) initWithSeekError: (SCSystemError error
whence: (SCFileStreamOffsetWhence whence
offset: (SCLong offset 

Initializes a seeking exception SCL-20036 by using the specified seeking error code, seeking offset whence and seeking offset.

Parameters
error- the seeking error code
whence- the seeking offset whence
offset- the seeking offset
Returns
A newly initialized exception
- (id) initWithSeekError: (SCSystemError error
whence: (SCFileStreamOffsetWhence whence
offset: (SCLong offset
path: (NSString *)  path 

Initializes a seeking exception SCL-20036 by using the specified seeking error code, seeking offset whence, seeking offset and path to the file stream.

Parameters
error- the seeking error code
whence- the seeking offset whence
offset- the seeking offset
path- the file stream path
Returns
A newly initialized exception
- (id) initWithWhence: (SCFileStreamOffsetWhence whence

Initializes an incorrect offset whence exception SCL-20037 by using the specified incorrect offset whence.

Parameters
whence- the incorrect offset whence
Returns
A newly initialized exception
- (id) initWithWhence: (SCFileStreamOffsetWhence whence
path: (NSString *)  path 

Initializes an incorrect offset whence exception SCL-20037 by using the specified incorrect offset whence and file stream path.

Parameters
whence- the incorrect offset whence
path- the path to the file stream
Returns
A newly initialized exception

Property Documentation

- (SCLong) offset
readatomicassign

Incorrect file stream offset

- (SCFileStreamOpenMode) openMode
readatomicassign

Incorrect file stream open mode

- (SCSystemError) seekError
readatomicassign

Stream seeking error code

- (SCFileStreamOffsetWhence) whence
readatomicassign

Incorrect file stream offset whence


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