Inherits from KMJMSException : KCException : NSException
Declared in KMTransactionInProgressException.h

Overview

This exception is thrown when an operation is invalid because a transaction is in progress. For instance, an attempt to call [KMSession commit] when a session is part of a distributed transaction should throw a KMTransactionInProgressException.

Tasks

Instance Methods

initWithReason:

Initializes a KMTransactionInProgressException with the specified reason. The error code defaults to nil.

- (KMTransactionInProgressException *)initWithReason:(NSString *)reason

Parameters

reason

a description of the exception

Return Value

the exception

Declared In

KMTransactionInProgressException.h

initWithReason:errorCode:

Initializes a KMTransactionInProgressException with the specified reason and error code.

- (KMTransactionInProgressException *)initWithReason:(NSString *)reason errorCode:(NSString *)errorCode

Parameters

reason

a description of the exception

errorCode

a string specifying the vendor-specific error code

Return Value

the exception

Declared In

KMTransactionInProgressException.h