Class IllegalStateException

All Implemented Interfaces:
Serializable

public class IllegalStateException extends ConsumerContractException
Method has been executed at an inappropriate time such as re-initializing a manager, accessing a resource after it has been closed, opening a new transaction while one is already in progress, or accessing elements when no more exist.
See Also:
  • Constructor Details

    • IllegalStateException

      public IllegalStateException(String msg)
      Constructs a IllegalStateException with the specified detail message. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
    • IllegalStateException

      public IllegalStateException(String msg, Throwable t)
      Constructs a IllegalStateException with the specified detail message and cause. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
      t - the cause of the exception
    • IllegalStateException

      public IllegalStateException(Throwable t)
      Constructs a IllegalStateException with the specified cause and a detail message of cause.toString() which typically contains the class and detail message of cause.
      Parameters:
      t - the cause of the exception