WebLogic Messaging API Class Library |

# IllegalStateException Class

This exception is thrown when a method is invoked at an illegal or inappropriate time or if JMS is not in an appropriate state for the requested operation. For example, this exception is thrown if `ISession.Commit` is called on a non-transacted session.

For a list of all members of this type, see IllegalStateException Members.

System.Object
Exception
ApplicationException
MessageException
IllegalStateException

public class IllegalStateException : MessageException

#### Thread Safety

This type is safe for multithreaded operations.

#### Requirements

Namespace: WebLogic.Messaging

Assembly: WebLogic.Messaging (in WebLogic.Messaging.dll)

#### See Also

IllegalStateException Members | WebLogic.Messaging Namespace