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
-
– errorCodeGets the vendor-specific error code.
-
– linkedExceptionGets the exception linked to this one.
-
– setLinkedException:Adds a linked Exception.
Instance Methods
errorCode
Gets the vendor-specific error code.
- (NSString *)errorCodeReturn Value
a string specifying the vendor-specific error code
Declared In
KMJMSException.hinitWithException:
- Initializes using another exception 8
- @param exception the nested exception
- (KMJMSException *)initWithException:(NSException *)exceptionDeclared In
KMJMSException.hinitWithReason:
Initializes the exception with the specified reason and with the error code defaulting to nil.
- (KMJMSException *)initWithReason:(NSString *)reasonParameters
- reason
a description of the exception
Declared In
KMJMSException.hinitWithReason:errorCode:
Initializes the exception with the specified reason and error code.
- (KMJMSException *)initWithReason:(NSString *)reason errorCode:(NSString *)errorCodeParameters
- reason
a description of the exception
- errorCode
a string specifying the vendor-specific error code
Declared In
KMJMSException.h