public abstract class JmsException extends NestedRuntimeException
Constructor and Description |
---|
JmsException(java.lang.String msg)
Constructor that takes a message.
|
JmsException(java.lang.String msg,
java.lang.Throwable cause)
Constructor that takes a message and a root cause.
|
JmsException(java.lang.Throwable cause)
Constructor that takes a plain root cause, intended for
subclasses mirroring corresponding
javax.jms exceptions. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Convenience method to get the vendor specific error code if
the root cause was an instance of JMSException.
|
java.lang.String |
getMessage()
Return the detail message, including the message from the linked exception
if there is one.
|
contains, getMostSpecificCause, getRootCause
public JmsException(java.lang.String msg)
msg
- the detail messagepublic JmsException(java.lang.String msg, java.lang.Throwable cause)
msg
- the detail messagecause
- the cause of the exception. This argument is generally
expected to be a proper subclass of javax.jms.JMSException
,
but can also be a JNDI NamingException or the like.public JmsException(java.lang.Throwable cause)
javax.jms
exceptions.cause
- the cause of the exception. This argument is generally
expected to be a proper subclass of javax.jms.JMSException
.public java.lang.String getErrorCode()
null
public java.lang.String getMessage()
getMessage
in class NestedRuntimeException
javax.jms.JMSException#getLinkedException()