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

Overview

This exception is thrown when a method is invoked at an illegal or inappropriate time or if the provider is not in an appropriate state for the requested operation. For example, this exception must be thrown if [KMSession commit] is called on a non-transacted session.

Tasks

Instance Methods

initWithReason:

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

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

Parameters

reason

a description of the exception

Declared In

KMIllegalStateException.h

initWithReason:errorCode:

Initializes a KMIllegalStateException with the specified reason and error code.

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

Parameters

reason

a description of the exception

errorCode

a string specifying the vendor-specific error code

Declared In

KMIllegalStateException.h