public class MQIllegalStateRuntimeException
extends javax.jms.IllegalStateRuntimeException
implements com.sun.messaging.jmq.jmsclient.logging.Loggable
This class is the MQ-specific implementation of javax.jms.IllegalStateRuntimeException and adds a new constructor and the methods setLogState and getlogState
Constructor and Description |
---|
MQIllegalStateRuntimeException(javax.jms.IllegalStateException cause)
Construct a
MQIllegalStateRuntimeException to wrap the specified IllegalStateException |
MQIllegalStateRuntimeException(java.lang.String detailMessage)
Constructs a
MQIllegalStateRuntimeException with the specified detail message |
MQIllegalStateRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode)
Constructs a
MQIllegalStateRuntimeException with the specified detail message and error code. |
MQIllegalStateRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode,
java.lang.Throwable cause)
Constructs a
MQIllegalStateRuntimeException 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 MQIllegalStateRuntimeException(java.lang.String detailMessage)
MQIllegalStateRuntimeException
with the specified detail messagedetailMessage
- a description of the exceptionpublic MQIllegalStateRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)
MQIllegalStateRuntimeException
with the specified detail message and error code.detailMessage
- a description of the exceptionerrorCode
- a provider-specific error codepublic MQIllegalStateRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)
MQIllegalStateRuntimeException
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 MQIllegalStateRuntimeException(javax.jms.IllegalStateException cause)
MQIllegalStateRuntimeException
to wrap the specified IllegalStateExceptioncause
- 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.