javax.jms

Class IllegalStateRuntimeException

  • All Implemented Interfaces:
    Serializable

    public class IllegalStateRuntimeException
    extends JMSRuntimeException
    This unchecked 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, and the method signature does not permit a IllegalStateRuntimeException to be thrown. For example, this exception must be thrown if JMSContext.commit is called on a non-transacted session.
    Since:
    JMS 2.0
    Version:
    JMS 2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • IllegalStateRuntimeException

        public IllegalStateRuntimeException(String detailMessage)
        Constructs a IllegalStateRuntimeException with the specified detail message
        Parameters:
        detailMessage - a description of the exception
      • IllegalStateRuntimeException

        public IllegalStateRuntimeException(String detailMessage,
                                            String errorCode)
        Constructs a IllegalStateRuntimeException with the specified detail message and error code.
        Parameters:
        detailMessage - a description of the exception
        errorCode - a provider-specific error code
      • IllegalStateRuntimeException

        public IllegalStateRuntimeException(String detailMessage,
                                            String errorCode,
                                            Throwable cause)
        Constructs a IllegalStateRuntimeException with the specified detail message, error code and cause
        Parameters:
        detailMessage - a description of the exception
        errorCode - a provider-specific error code
        cause - the underlying cause of this exception

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/jms/illegalstateruntimeexception.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.