KMJMSException Class Reference
Inherits from | KCException : NSException |
Declared in | KMJMSException.h |
Overview
This is the root class of all JMS API exceptions.
It provides the following information:
- A provider-specific string describing the error. This string is the standard exception message and is available via the getMessage method.
- A provider-specific string error code
- A reference to another exception. Often a JMS API exception will be the result of a lower-level problem. If appropriate, this lower-level exception can be linked to the JMS API exception.
Tasks
-
– initWithReason:errorCode:
Initializes the exception with the specified reason and error code.
-
– initWithReason:
Initializes the exception with the specified reason and with the error code defaulting to nil.
-
– initWithException:
- Initializes using another exception 8
- @param exception the nested exception
-
– errorCode
Gets the vendor-specific error code.
-
– linkedException
Gets the exception linked to this one.
-
– setLinkedException:
Adds a linked Exception.
Instance Methods
errorCode
Gets the vendor-specific error code.
- (NSString *)errorCode
Return Value
a string specifying the vendor-specific error code
Declared In
KMJMSException.h
initWithException:
- Initializes using another exception 8
- @param exception the nested exception
- (KMJMSException *)initWithException:(NSException *)exception
Declared In
KMJMSException.h
initWithReason:
Initializes the exception with the specified reason and with the error code defaulting to nil.
- (KMJMSException *)initWithReason:(NSString *)reason
Parameters
- reason
a description of the exception
Declared In
KMJMSException.h
initWithReason:errorCode:
Initializes the exception with the specified reason and error code.
- (KMJMSException *)initWithReason:(NSString *)reason errorCode:(NSString *)errorCode
Parameters
- reason
a description of the exception
- errorCode
a string specifying the vendor-specific error code
Declared In
KMJMSException.h