public class MQMessageNotWriteableRuntimeException extends MessageNotWriteableRuntimeException implements com.sun.messaging.jmq.jmsclient.logging.Loggable
This class is the MQ-specific implementation of javax.jms.MessageNotWriteableRuntimeException and adds a new constructor and the methods setLogState and getlogState
| Constructor and Description |
|---|
MQMessageNotWriteableRuntimeException(MessageNotWriteableException cause)
Construct a
MQMessageNotWriteableRuntimeException to wrap the
specified MessageNotWriteableException |
MQMessageNotWriteableRuntimeException(String detailMessage)
Constructs a
MQMessageNotWriteableRuntimeException with the specified
detail message |
MQMessageNotWriteableRuntimeException(String detailMessage,
String errorCode)
Constructs a
MQMessageNotWriteableRuntimeException with the specified
detail message and error code. |
MQMessageNotWriteableRuntimeException(String detailMessage,
String errorCode,
Throwable cause)
Constructs a
MQMessageNotWriteableRuntimeException with the specified
detail message, error code and cause |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getLogState()
return whether this object is logged
|
void |
setLogState(boolean state)
Specify whether this object is logged.
|
getErrorCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MQMessageNotWriteableRuntimeException(String detailMessage)
MQMessageNotWriteableRuntimeException with the specified
detail messagedetailMessage - a description of the exceptionpublic MQMessageNotWriteableRuntimeException(String detailMessage, String errorCode)
MQMessageNotWriteableRuntimeException with the specified
detail message and error code.detailMessage - a description of the exceptionerrorCode - a provider-specific error codepublic MQMessageNotWriteableRuntimeException(String detailMessage, String errorCode, Throwable cause)
MQMessageNotWriteableRuntimeException with the specified
detail message, error code and causedetailMessage - a description of the exceptionerrorCode - a provider-specific error codecause - the underlying cause of this exceptionpublic MQMessageNotWriteableRuntimeException(MessageNotWriteableException cause)
MQMessageNotWriteableRuntimeException to wrap the
specified MessageNotWriteableExceptioncause - the underlying cause of this exceptionpublic void setLogState(boolean state)
setLogState in interface com.sun.messaging.jmq.jmsclient.logging.Loggablewhether - this object is loggedpublic boolean getLogState()
getLogState in interface com.sun.messaging.jmq.jmsclient.logging.LoggableCopyright (c) 2014, Oracle and/or its affiliates. All rights reserved.