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

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

linkedException

Gets the exception linked to this one.

- (NSException *)linkedException

Return Value

the linked Exception, nil if none

Declared In

KMJMSException.h

setLinkedException:

Adds a linked Exception.

- (void)setLinkedException:(NSException *)exception

Parameters

exception

the linked Exception, or nil to unset

Declared In

KMJMSException.h