FileDocCategorySizeDatePackage
IllegalStateException.javaAPI DocGlassfish v2 API1445Fri May 27 15:56:40 BST 2005javax.jms

IllegalStateException

public class IllegalStateException extends JMSException

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 Session.commit is called on a non-transacted session. This exception is also called when a domain inappropriate method is called, such as calling TopicSession.CreateQueueBrowser.

version
April 9, 2002
author
Rahul Sharma
author
Kate Stout

Fields Summary
Constructors Summary
public IllegalStateException(String reason, String errorCode)
Constructs an IllegalStateException with the specified reason and error code.

param
reason a description of the exception
param
errorCode a string specifying the vendor-specific error code

    super(reason, errorCode);
  
public IllegalStateException(String reason)
Constructs an IllegalStateException with the specified reason. The error code defaults to null.

param
reason a description of the exception

    super(reason);
  
Methods Summary