KMMessageFormatException Class Reference
Inherits from | KMJMSException : KCException : NSException |
Declared in | KMMessageFormatException.h |
Overview
This exception must be thrown when a JMS client attempts to use a data type not supported by a message or attempts to read data in a message as the wrong type. It must also be thrown when equivalent type errors are made with message property values. For example, this exception must be thrown if [KMStreamMessage writeObject:] is given an unsupported class or if [KMStreamMessage readShort] is used to read a bool value. Note that the special case of a failure caused by an attempt to read improperly formatted String data as numeric values must throw the KMNumberFormatException.
Tasks
-
– initWithReason:errorCode:
Initializes a KMMessageFormatException with the specified reason and error code.
-
– initWithReason:
Initializes a KMMessageFormatException with the specified reason. The error code defaults to nil.
Instance Methods
initWithReason:
Initializes a KMMessageFormatException with the specified reason. The error code defaults to nil.
- (KMMessageFormatException *)initWithReason:(NSString *)reason
Parameters
- reason
a description of the exception
Declared In
KMMessageFormatException.h
initWithReason:errorCode:
Initializes a KMMessageFormatException with the specified reason and error code.
- (KMMessageFormatException *)initWithReason:(NSString *)reason errorCode:(NSString *)errorCode
Parameters
- reason
a description of the exception
- errorCode
a string specifying the vendor-specific error code
Declared In
KMMessageFormatException.h