public class JMSException
extends java.lang.Exception
This is the root class of all checked exceptions in the Jakarta Messaging API.
It provides the following information:
getMessage
method.
Constructor and Description |
---|
JMSException(java.lang.String reason)
Constructs a
JMSException with the specified reason and with the error code defaulting to null. |
JMSException(java.lang.String reason,
java.lang.String errorCode)
Constructs a
JMSException with the specified reason and error code. |
JMSException(java.lang.String reason,
java.lang.String errorCode,
java.lang.Exception linkedException)
Constructs a
JMSException with the specified reason, error code
and linked exception. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Gets the vendor-specific error code.
|
java.lang.Exception |
getLinkedException()
Gets the exception linked to this one.
|
void |
setLinkedException(java.lang.Exception ex)
Adds a linked
Exception . |
public JMSException(java.lang.String reason, java.lang.String errorCode, java.lang.Exception linkedException)
JMSException
with the specified reason, error code
and linked exception.reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific error codelinkedException
- the linked Exception
public JMSException(java.lang.String reason, java.lang.String errorCode)
JMSException
with the specified reason and error code.reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific error codepublic JMSException(java.lang.String reason)
JMSException
with the specified reason and with the error code defaulting to null.reason
- a description of the exceptionpublic java.lang.String getErrorCode()
public java.lang.Exception getLinkedException()
Exception
, null if nonepublic void setLinkedException(java.lang.Exception ex)
Exception
.ex
- the linked Exception
Copyright 2004-2024 Solace Corporation. All rights reserved.