ROSuperHTTPPackageTooBigException

Overview

Thius exception is thrown when the size of data package being transmitted exceeds the configured limits. This exception can be thrown on both client and server sides. Use ROSuperHTTPClientChannel property to configure the desired maximum packages size for Xcode clients and refer to corresponding server channel's documentation for server side configuration.

Location

 

exceptionName    (declared in ROException)

Return the exception name to be used to construct the class instance as NSException descendant. See NSException documentation for more details.

+ (NSString *) exceptionName

exceptionWithMessage:    (declared in ROException)

Constructs the excetion instance with the given text message (corresponds to reason of NSException).

+ (ROException *) exceptionWithMessage:(NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage: A text string decribing the exception

exceptionWithPackageSize:maxPackageSize:

Creates an exception specifying package size information.

+ (ROSuperHTTPPackageTooBigException *) exceptionWithPackageSize:(NSUInteger)aSize maxPackageSize:(NSUInteger)aMaxSize

Parameters:

  • aSize: The package size that was attempted to be transferred
  • aMaxSize: The maximum package size configured

fromServer  assign    (declared in ROException)

This flag is used to distinguish server side exceptions from client side ones. Set to YES for server side exceptions.

@property (assign) BOOL fromServer

initWithMessage:    (declared in ROException)

initializes a new ROException with the given error message.

- (id) initWithMessage:(NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage: A text string decribing the exception

initWithMessage:fromServer:    (declared in ROException)

Initializes a new ROException with the given error message and optionally marks the exception as having been received from a server by setting the fromServer property.

- (id) initWithMessage:(NSString *)aExceptionMessage fromServer:(BOOL)aFromServer

Parameters:

  • aExceptionMessage: A text string decribing the exception
  • aFromServer: Set to YES for server side exceptions.

initWithPackageSize:maxPackageSize:

Initizlizes the exception specifying package size information.

- (id) initWithPackageSize:(NSUInteger)aSize maxPackageSize:(NSUInteger)aMaxSize

Parameters:

  • aSize: The package size that was attempted to be transferred
  • aMaxSize: The maximum package size configured

maxPackageSize  assign

The maximum package size configured.

@property (assign) NSUInteger maxPackageSize

packageSize  assign

The package size that was attempted to be transferred.

@property (assign) NSUInteger packageSize

serverStackTrace  copy    (declared in ROException)

Used to store the stack trace of server exception. The availability of this information depends on the server platform.

@property (copy) NSString *serverStackTrace

 

fromServer  assign    (declared in ROException)

This flag is used to distinguish server side exceptions from client side ones. Set to YES for server side exceptions.

@property (assign) BOOL fromServer

maxPackageSize  assign

The maximum package size configured.

@property (assign) NSUInteger maxPackageSize

packageSize  assign

The package size that was attempted to be transferred.

@property (assign) NSUInteger packageSize

serverStackTrace  copy    (declared in ROException)

Used to store the stack trace of server exception. The availability of this information depends on the server platform.

@property (copy) NSString *serverStackTrace

 

exceptionName    (declared in ROException)

Return the exception name to be used to construct the class instance as NSException descendant. See NSException documentation for more details.

+ (NSString *) exceptionName

exceptionWithMessage:    (declared in ROException)

Constructs the excetion instance with the given text message (corresponds to reason of NSException).

+ (ROException *) exceptionWithMessage:(NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage: A text string decribing the exception

exceptionWithPackageSize:maxPackageSize:

Creates an exception specifying package size information.

+ (ROSuperHTTPPackageTooBigException *) exceptionWithPackageSize:(NSUInteger)aSize maxPackageSize:(NSUInteger)aMaxSize

Parameters:

  • aSize: The package size that was attempted to be transferred
  • aMaxSize: The maximum package size configured

 

initWithMessage:    (declared in ROException)

initializes a new ROException with the given error message.

- (id) initWithMessage:(NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage: A text string decribing the exception

initWithMessage:fromServer:    (declared in ROException)

Initializes a new ROException with the given error message and optionally marks the exception as having been received from a server by setting the fromServer property.

- (id) initWithMessage:(NSString *)aExceptionMessage fromServer:(BOOL)aFromServer

Parameters:

  • aExceptionMessage: A text string decribing the exception
  • aFromServer: Set to YES for server side exceptions.

initWithPackageSize:maxPackageSize:

Initizlizes the exception specifying package size information.

- (id) initWithPackageSize:(NSUInteger)aSize maxPackageSize:(NSUInteger)aMaxSize

Parameters:

  • aSize: The package size that was attempted to be transferred
  • aMaxSize: The maximum package size configured

See Also

ROSuperHTTPClientChannel Super HTTP Channel