Samond Classes Library 1.1.6-RELEASE build 132

SCNetException Class Reference

Network exception class. More...

#import <SCNetException.h>

Inheritance diagram for SCNetException:
SCException

List of all members.

Public Member Functions

Querying Exception Properties
(SCNetError- type
(NSString *) - data
(SCSystemError- error
(void) - setType:
(void) - setData:
(void) - setError:

Creating and Initializing Generic Network Exception

(SCNetException *) + exception
(SCNetException *) + exceptionWithReason:
(SCNetException *) + exceptionWithType:reason:
(SCNetException *) + exceptionWithType:data:error:
(SCNetException *) + exceptionWithType:data:
(SCNetException *) + exceptionWithType:
(id) - init
(id) - initWithReason:
(id) - initWithType:reason:
(id) - initWithType:data:error:
(id) - initWithType:data:
(id) - initWithType:

Creating and Initializing Subnets Related Exception

(SCNetException *) + exceptionWithEmptySubnetMask
(SCNetException *) + exceptionWithSubnetMask:
(SCNetException *) + exceptionWithUncontinuouslySubnetMask:
(SCNetException *) + exceptionWithEmptyWildcardMask
(SCNetException *) + exceptionWithWildcardMask:
(SCNetException *) + exceptionWithUncontinuouslyWildcardMask:
(SCNetException *) + exceptionWithSubnetHostsCount:
(SCNetException *) + exceptionWithEmptySourceSubnetMask
(SCNetException *) + exceptionWithHostSubnet
(SCNetException *) + exceptionWithHostWildcard
(SCNetException *) + exceptionWithEmptySubnet
(SCNetException *) + exceptionWithStartAddressLess
(SCNetException *) + exceptionWithEmptySubnetsArray
(id) - initWithEmptySubnetMask
(id) - initWithSubnetMask:
(id) - initWithUncontinuouslySubnetMask:
(id) - initWithEmptyWildcardMask
(id) - initWithWildcardMask:
(id) - initWithUncontinuouslyWildcardMask:
(id) - initWithSubnetHostsCount:
(id) - initWithEmptySourceSubnetMask
(id) - initWithHostSubnet
(id) - initWithHostWildcard
(id) - initWithEmptySubnet
(id) - initWithStartAddressLess
(id) - initWithEmptySubnetsArray

Creating and Initializing Subnet Prefixes Related Exception

(SCNetException *) + exceptionWithSubnetPrefix:
(SCNetException *) + exceptionWithPrefixLength:
(SCNetException *) + exceptionWithEmptySubnetPrefix
(SCNetException *) + exceptionWithHostPrefixLength
(SCNetException *) + exceptionWithHostSubnetPrefix
(id) - initWithSubnetPrefix:
(id) - initWithPrefixLength:
(id) - initWithEmptySubnetPrefix
(id) - initWithHostPrefixLength
(id) - initWithHostSubnetPrefix

Creating and Initializing IP Addresses Related Exception

(SCNetException *) + exceptionWithAddress:
(SCNetException *) + exceptionWithEmptyAddress
(SCNetException *) + exceptionWithFirstOctet:
(SCNetException *) + exceptionWithRawAddress:
(SCNetException *) + exceptionWithEmptySourceAddress
(SCNetException *) + exceptionWithSubnetAddress:
(SCNetException *) + exceptionWithEmptyStartAddress
(SCNetException *) + exceptionWithEmptyEndAddress
(id) - initWithAddress:
(id) - initWithEmptyAddress
(id) - initWithFirstOctet:
(id) - initWithRawAddress:
(id) - initWithEmptySourceAddress
(id) - initWithSubnetAddress:
(id) - initWithEmptyStartAddress
(id) - initWithEmptyEndAddress

Detailed Description

Network exception class.

Exception generates when network error detected.
Class was introduced in version 1.1.3.

Class declares the following properties:


Member Function Documentation

- (NSString *) data

Returns the exception data.

Returns:
Exception data
- (SCSystemError) error

Returns the system error code.

Returns:
System error code
+ (SCNetException *) exception

Returns an exception created by using the generic network error message.

Returns:
A created exception
+ (SCNetException *) exceptionWithAddress: (NSString *)  address

Returns an exception created by using the specified incorrect IP address.

Parameters:
address- incorrect IP address
Returns:
A created exception
+ (SCNetException *) exceptionWithEmptyAddress

Returns an empty IP address network exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptyEndAddress

Returns an empty end IP address network exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptySourceAddress

Returns an empty source IP address network exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptySourceSubnetMask

Returns an empty source subnet mask exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptyStartAddress

Returns an empty start IP address network exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptySubnet

Returns an empty subnet exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptySubnetMask

Returns an empty subnet mask exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptySubnetPrefix

Returns an empty subnet prefix exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptySubnetsArray

Returns an empty subnets array exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithEmptyWildcardMask

Returns an empty wildcard mask exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithFirstOctet: (NSString *)  octet

Returns an exception created by using the specified the incorrect first octet.

Parameters:
octet- incorrect first octet
Returns:
A created exception
+ (SCNetException *) exceptionWithHostPrefixLength

Returns a host prefix length exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithHostSubnet

Returns a host subnet using for subnetting exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithHostSubnetPrefix

Returns a host subnet prefix exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithHostWildcard

Returns a host wildcard mask using for subnetting exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithPrefixLength: (SCUByte length

Returns an exception created by using the specified incorrect subnet prefix length.

Parameters:
length- incorrect subnet prefix length
Returns:
A created exception
+ (SCNetException *) exceptionWithRawAddress: (SCUInteger raw

Returns an exception created by using the specified incorrect raw IP address.

Parameters:
raw- incorrect raw IP address
Returns:
A created exception
+ (SCNetException *) exceptionWithReason: (NSString *)  reason

Returns an exception created by using the specified error description.

Parameters:
reason- error description
Returns:
A created exception
+ (SCNetException *) exceptionWithStartAddressLess

Returns a start address is less than end address network exception.

Returns:
A created exception
+ (SCNetException *) exceptionWithSubnetAddress: (NSString *)  address

Returns an exception created by using the specified incorrect subnet address.

Parameters:
address- incorrect subnet address
Returns:
A created exception
+ (SCNetException *) exceptionWithSubnetHostsCount: (SCUInteger count

Returns an exception created by using the specified incorrect subnet hosts count.

Parameters:
count- incorrect subnet hosts count
Returns:
A created exception
+ (SCNetException *) exceptionWithSubnetMask: (NSString *)  mask

Returns an exception created by using the specified incorrect subnet mask.

Parameters:
mask- incorrect subnet mask
Returns:
A created subnet mask
+ (SCNetException *) exceptionWithSubnetPrefix: (NSString *)  prefix

Returns an exception created by using the specified incorrect subnet prefix.

Parameters:
prefix- incorrect subnet prefix
Returns:
A created exception
+ (SCNetException *) exceptionWithType: (SCNetError type

Returns an exception created by using the specified type.

Parameters:
type- exception type
Returns:
A created exception
+ (SCNetException *) exceptionWithType: (SCNetError type
data: (NSString *)  data 

Returns an exception created by using the specified type and data.

Parameters:
type- exception type
data- exception data
Returns:
A created exception
+ (SCNetException *) exceptionWithType: (SCNetError type
data: (NSString *)  data
error: (SCSystemError error 

Returns an exception created by using the specified type, data and system error code.

Parameters:
type- exception type
data- exception data
error- system error code
Returns:
A created exception
+ (SCNetException *) exceptionWithType: (SCNetError type
reason: (NSString *)  reason 

Returns an exception created by using the specified type and error description.

Parameters:
type- exception type
reason- error description
Returns:
A created exception
+ (SCNetException *) exceptionWithUncontinuouslySubnetMask: (NSString *)  mask

Returns an exception created by using the specified uncontinuously subnet mask.

Parameters:
mask- uncontinuously subnet mask
Returns:
A created exception
+ (SCNetException *) exceptionWithUncontinuouslyWildcardMask: (NSString *)  wildcard

Returns an exception created by using the specified uncontinuously wildcard mask.

Parameters:
wildcard- uncontinuously wildcard mask
Returns:
A created exception
+ (SCNetException *) exceptionWithWildcardMask: (NSString *)  wildcard

Returns an exception created by using the specified incorrect wildcard mask.

Parameters:
wildcard- incorrect wildcard mask
Returns:
A created exception
- (id) init

Initializes the exception using the generic network error description.

Returns:
A newly initialized exception
- (id) initWithAddress: (NSString *)  address

Initializes the exception using the specified incorrect IP address.

Parameters:
address- incorrect IP address
Returns:
A newly initialized exception
- (id) initWithEmptyAddress

Initializes the empty IP address network exception.

Returns:
A newly initialized exception
- (id) initWithEmptyEndAddress

Initializes the empty end IP address network exception.

Returns:
A newly initialized exception
- (id) initWithEmptySourceAddress

Initializes the empty source IP address network exception.

Returns:
A newly initialized exception
- (id) initWithEmptySourceSubnetMask

Initializes the empty source subnet mask exception.

Returns:
A newly initialized exception
- (id) initWithEmptyStartAddress

Initializes the empty start IP address network exception.

Returns:
A newly initialized exception
- (id) initWithEmptySubnet

Initializes the empty subnet exception.

Returns:
A newly initialized exception
- (id) initWithEmptySubnetMask

Initializes the empty subnet mask exception.

Returns:
A newly initialized exception
- (id) initWithEmptySubnetPrefix

Initializes the empty subnet prefix exception.

Returns:
A newly initialized exception
- (id) initWithEmptySubnetsArray

Initializes the empty subnets array exception.

Returns:
A newly initialized exception
- (id) initWithEmptyWildcardMask

Initializes the empty wildcard mask exception.

Returns:
A newly initialized exception
- (id) initWithFirstOctet: (NSString *)  octet

Initializes the exception using the specified incorrect first octet.

Parameters:
octet- incorrect first octet
Returns:
A newly initialized exception
- (id) initWithHostPrefixLength

Initializes the host prefix length exception.

Returns:
A newly initialized exception
- (id) initWithHostSubnet

Initializes the host subnet using for subnetting exception.

Returns:
A newly initialized exception
- (id) initWithHostSubnetPrefix

Initializes the host subnet prefix exception.

Returns:
A newly initialized exception
- (id) initWithHostWildcard

Initializes the host wildcard mask using for subnetting exception.

Returns:
A newly initialized exception
- (id) initWithPrefixLength: (SCUByte length

Initializes the exception using the specified incorrect subnet prefix length.

Parameters:
length- incorrect subnet prefix length
Returns:
A newly initialized exception
- (id) initWithRawAddress: (SCUInteger raw

Initializes the exception using the specified incorrect raw IP address.

Parameters:
raw- incorrect raw IP address
Returns:
A newly initialized exception
- (id) initWithReason: (NSString *)  reason

Initializes the exception using the specified error description.

Parameters:
reason- error description
Returns:
A newly initialized exception
- (id) initWithStartAddressLess

Initializes the start address is less than end address network exception.

Returns:
A newly initialized exception
- (id) initWithSubnetAddress: (NSString *)  address

Initializes the exception using the specified incorrect subnet address.

Parameters:
address- incorrect subnet address
Returns:
A newly initialized exception
- (id) initWithSubnetHostsCount: (SCUInteger count

Initializes the exception using the specified incorrect subnet hosts count.

Parameters:
count- incorrect subnet hosts count
Returns:
A newly initialized exception
- (id) initWithSubnetMask: (NSString *)  mask

Initializes the exception using the specified incorrect subnet mask.

Parameters:
mask- incorrect subnet mask
Returns:
A newly initialized exception
- (id) initWithSubnetPrefix: (NSString *)  prefix

Initializes the exception using the specified incorrect subnet prefix.

Parameters:
prefix- incorrect subnet prefix
Returns:
A newly created exception
- (id) initWithType: (SCNetError type

Initializes the exception using the specified type.

Parameters:
type- exception type
Returns:
A newly initialized exception
- (id) initWithType: (SCNetError type
data: (NSString *)  data 

Initializes the exception using the specified type and data.

Parameters:
type- exception type
data- exception data
Returns:
A newly initialized exception
- (id) initWithType: (SCNetError type
data: (NSString *)  data
error: (SCSystemError error 

Initializes the exception using the specified type, data and system error code.

Parameters:
type- exception type
data- exception data
error- system error code
Returns:
A newly initialized exception
- (id) initWithType: (SCNetError type
reason: (NSString *)  reason 

Initializes the exception using the specified type and error description.

Parameters:
type- exception type
reason- error description
Returns:
A newly initialized exception
- (id) initWithUncontinuouslySubnetMask: (NSString *)  mask

Initializes the exception using the specified uncontinuously subnet mask.

Parameters:
mask- uncontinuously subnet mask
Returns:
A newly initialized exception
- (id) initWithUncontinuouslyWildcardMask: (NSString *)  wildcard

Initializes the exception using the specified uncontinuously wildcard mask.

Parameters:
wildcard- uncontinuously wildcard mask
Returns:
A newly initialized exception
- (id) initWithWildcardMask: (NSString *)  wildcard

Initializes the exception using the specified incorrect wildcard mask.

Parameters:
wildcard- incorrect wildcard mask
Returns:
A newly initialized exception
- (void) setData: (NSString *)  data

Sets the exception data.

Parameters:
data- exception data
- (void) setError: (SCSystemError error

Sets the system error code.

Parameters:
error- system error code
- (void) setType: (SCNetError type

Sets the exception type.

Parameters:
type- exception type
- (SCNetError) type

Returns the exception type.

Returns:
Exception type

The documentation for this class was generated from the following files:
 All Classes Files Functions Typedefs Enumerations Enumerator Defines