public abstract class JmsException extends 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, @Nullable 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(@Nullable Throwable cause)
javax.jms
exceptions.cause
- the cause of the exception. This argument is generally
expected to be a proper subclass of JMSException
.@Nullable public String getErrorCode()
null
@Nullable public String getMessage()
getMessage
in class NestedRuntimeException
JMSException.getLinkedException()