public class MQRuntimeException
extends javax.jms.JMSRuntimeException
implements com.sun.messaging.jmq.jmsclient.logging.Loggable
Constructor and Description |
---|
MQRuntimeException(javax.jms.JMSException cause)
Construct a
MQRuntimeException to wrap the specified JMSException |
MQRuntimeException(java.lang.String detailMessage)
Constructs a
MQRuntimeException with the specified detail message |
MQRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode)
Constructs a
MQRuntimeException with the specified detail message and error code. |
MQRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode,
java.lang.Throwable cause)
Constructs a
MQRuntimeException 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.
|
public MQRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)
MQRuntimeException
with the specified detail message and error code.detailMessage
- a description of the exceptionerrorCode
- a provider-specific error codepublic MQRuntimeException(java.lang.String detailMessage)
MQRuntimeException
with the specified detail messagedetailMessage
- a description of the exceptionpublic MQRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)
MQRuntimeException
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 MQRuntimeException(javax.jms.JMSException cause)
MQRuntimeException
to wrap the specified JMSExceptioncause
- the underlying cause of this exceptionpublic void setLogState(boolean state)
setLogState
in interface com.sun.messaging.jmq.jmsclient.logging.Loggable
whether
- this object is loggedpublic boolean getLogState()
getLogState
in interface com.sun.messaging.jmq.jmsclient.logging.Loggable
Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.