Package javax.jms
Class JMSRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.jms.JMSRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IllegalStateRuntimeException,InvalidClientIDRuntimeException,InvalidDestinationRuntimeException,InvalidSelectorRuntimeException,JMSSecurityRuntimeException,MessageFormatRuntimeException,MessageNotWriteableRuntimeException,ResourceAllocationRuntimeException,TransactionInProgressRuntimeException,TransactionRolledBackRuntimeException
public class JMSRuntimeException extends java.lang.RuntimeExceptionThis is the root class of all unchecked exceptions in the Jakarta Messaging API.In additional to the detailMessage and cause fields inherited from
Throwable, this class also allows a provider-specific errorCode to be set.- Since:
- JMS 2.0
- Version:
- Jakarta Messaging 2.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringerrorCodeProvider-specific error code.private static longserialVersionUIDExplicitly set serialVersionUID to be the same as the implicit serialVersionUID of the Java Message Service 1.1 version
-
Constructor Summary
Constructors Constructor Description JMSRuntimeException(java.lang.String detailMessage)Constructs aJMSRuntimeExceptionwith the specified detail messageJMSRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)Constructs aJMSRuntimeExceptionwith the specified detail message and error code.JMSRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)Constructs aJMSRuntimeExceptionwith the specified detail message, error code and cause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorCode()Returns the vendor-specific error code.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the Java Message Service 1.1 version- See Also:
- Constant Field Values
-
errorCode
private java.lang.String errorCode
Provider-specific error code.
-
-
Constructor Detail
-
JMSRuntimeException
public JMSRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)Constructs aJMSRuntimeExceptionwith the specified detail message and error code.- Parameters:
detailMessage- a description of the exceptionerrorCode- a provider-specific error code
-
JMSRuntimeException
public JMSRuntimeException(java.lang.String detailMessage)
Constructs aJMSRuntimeExceptionwith the specified detail message- Parameters:
detailMessage- a description of the exception
-
JMSRuntimeException
public JMSRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)Constructs aJMSRuntimeExceptionwith the specified detail message, error code and cause- Parameters:
detailMessage- a description of the exceptionerrorCode- a provider-specific error codecause- the underlying cause of this exception
-
-