This is the root class of all checked exceptions in the JMS API.
It provides the following information:
getMessage method.
| Modifier and Type | Field and Description |
|---|---|
| private String | errorCode
Vendor-specific error code. |
| private Exception | linkedException
|
| private static final long | serialVersionUID
Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 1.1 version
|
| Access | Constructor and Description |
|---|---|
| public | JMSException(String
a description of the exception reason, String a string specifying the vendor-specific
error code errorCode)Constructs a |
| public | JMSException(String
a description of the exception reason)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a string specifying the vendor-specific error codeGets the vendor-specific error code. |
| public Exception | Returns: the linkedException, null if noneGets the exception linked to this one. |
| public void |
| errorCode | back to summary |
|---|---|
| private String errorCode Vendor-specific error code. | |
| linkedException | back to summary |
|---|---|
| private Exception linkedException
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 1.1 version | |
| JMSException | back to summary |
|---|---|
| public JMSException(String reason, String errorCode) Constructs a | |
| JMSException | back to summary |
|---|---|
| public JMSException(String reason) Constructs a
| |
| getErrorCode | back to summary |
|---|---|
| public String getErrorCode() Gets the vendor-specific error code.
| |
| getLinkedException | back to summary |
|---|---|
| public Exception getLinkedException() Gets the exception linked to this one.
| |
| setLinkedException | back to summary |
|---|---|
| public void setLinkedException(Exception ex) Adds a linked
| |