public final class JMSExceptionSupport extends Object
| Constructor and Description |
|---|
JMSExceptionSupport() |
| Modifier and Type | Method and Description |
|---|---|
static javax.jms.JMSException |
create(String message,
Throwable cause)
Creates or passes through a JMSException to be thrown to the client.
|
static javax.jms.JMSException |
create(Throwable cause)
Creates or passes through a JMSException to be thrown to the client.
|
static javax.jms.MessageEOFException |
createMessageEOFException(Throwable cause)
Creates or passes through a MessageEOFException to be thrown to the client.
|
static javax.jms.MessageFormatException |
createMessageFormatException(Throwable cause)
Creates or passes through a MessageFormatException to be thrown to the client.
|
static javax.jms.JMSRuntimeException |
createRuntimeException(Exception exception)
Creates the proper instance of a JMSRuntimeException based on the type
of JMSException that is passed.
|
public static javax.jms.JMSException create(String message, Throwable cause)
message - The message value to set when a new JMSException is created.cause - The exception that caused this error state.public static javax.jms.JMSException create(Throwable cause)
cause - The exception that caused this error state.public static javax.jms.MessageEOFException createMessageEOFException(Throwable cause)
cause - The exception that caused this error state.public static javax.jms.MessageFormatException createMessageFormatException(Throwable cause)
cause - The exception that caused this error state.public static javax.jms.JMSRuntimeException createRuntimeException(Exception exception)
exception - The JMSException instance to convert to a JMSRuntimeExceptionJMSRuntimeException instance that reflects the original error.Copyright © 2017–2018. All rights reserved.