Top Description Constructors Methods
javax.resource.spi

public Class IllegalStateException

extends ResourceException
Class Inheritance

An IllegalStateException is thrown from a method if the callee (resource adapter or application server for system contracts) is in an illegal or inappropriate state for the method invocation.
Authors
Rahul Sharma, Ram Jeyaraman
Version
1.0

Constructor Summary

AccessConstructor and Description
public
IllegalStateException()

Constructs a new instance with null as its detail message.

public
IllegalStateException(String
the detail message.
message
)

Constructs a new instance with the specified detail message.

public
IllegalStateException(Throwable
a chained exception of type Throwable.
cause
)

Constructs a new throwable with the specified cause.

public
IllegalStateException(String
the detail message.
message
,
Throwable
a chained exception of type Throwable.
cause
)

Constructs a new throwable with the specified detail message and cause.

public
IllegalStateException(String
a description of the exception.
message
,
String
a string specifying the vendor specific error code.
errorCode
)

Constructs a new throwable with the specified detail message and an error code.

Method Summary

Inherited from javax.resource.ResourceException:
getErrorCodegetLinkedExceptiongetMessagesetErrorCodesetLinkedException

Constructor Detail

IllegalStateExceptionback to summary
public IllegalStateException()

Constructs a new instance with null as its detail message.

IllegalStateExceptionback to summary
public IllegalStateException(String message)

Constructs a new instance with the specified detail message.

Parameters
message:String

the detail message.

IllegalStateExceptionback to summary
public IllegalStateException(Throwable cause)

Constructs a new throwable with the specified cause.

Parameters
cause:Throwable

a chained exception of type Throwable.

IllegalStateExceptionback to summary
public IllegalStateException(String message, Throwable cause)

Constructs a new throwable with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

a chained exception of type Throwable.

IllegalStateExceptionback to summary
public IllegalStateException(String message, String errorCode)

Constructs a new throwable with the specified detail message and an error code.

Parameters
message:String

a description of the exception.

errorCode:String

a string specifying the vendor specific error code.