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