public class AdapterConnectionException extends AdapterException
WmAdapter
createAdapterConnectionException methods.
For resource errors that do not require connections to be reset, adapter writers should throw an instance of AdapterException, using the
WmAdapter
createAdapterException methods.
AdapterConnectionException implements IDataCodable so that instances of it
can be manipulated as IData by interested parties. Each of the
AdapterException's properties is stored in the IData, keyed by the
field names described in AdapterExceptionConstants
and LocalizableException
.Modifier and Type | Field and Description |
---|---|
protected boolean |
_fatal |
_bundleManager, _data, _date, _defaultMessage, _errorCode, _errorMessageArgs, _errorResourceBundleName, _majorCode, _throwable
DATE_KEY, DETAIL_KEY, EXCEPTION_CLASS_KEY, EXCEPTIONDETAIL_KEY, MESSAGE_KEY, REASON_KEY, STACK_KEY
ERRORARGS_KEY, ERRORCODE_KEY, ERRORRESOURCEBUNDLE_KEY
Constructor and Description |
---|
AdapterConnectionException(AdapterResourceBundleManager mgr,
java.lang.String majorCode,
java.lang.String errorCode,
java.lang.String[] errorMessageArgs,
com.wm.data.IData detail,
java.lang.Throwable reason)
Construct a connection exception.
|
AdapterConnectionException(AdapterResourceBundleManager mgr,
java.lang.String majorCode,
java.lang.String errorCode,
java.lang.String[] errorMessageArgs,
com.wm.data.IData detail,
java.lang.Throwable reason,
boolean log)
Construct a connection exception.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFatal()
Returns true if the connection error is fatal.
|
void |
setFatal(boolean isFatal)
Sets the connection error condition to fatal.
|
getAdapterServiceException, getErrorKey, getErrorMessageArgs, getIData, getLinkedException, getLinkedThrowable, getLocalizedMessage, getLocalizedMessage, getMessage, getNodeName, getResourceBundleName, getStackTrace, init, logged, setIData, setLinkedException, setLinkedThrowable, setLogged, setNodeName
public AdapterConnectionException(AdapterResourceBundleManager mgr, java.lang.String majorCode, java.lang.String errorCode, java.lang.String[] errorMessageArgs, com.wm.data.IData detail, java.lang.Throwable reason)
mgr
- the AdapterResourceBundleManager for this adapter,
obtained by calling the WmAdapter.getAdapterResourceBundleManager()
method.errorCode
- the string consisting of the adapter's error major code and the error message's minor code
formatted as "{adapter_major_code}.{error_message_minorcode}". For example, if the adapter's major code is 1 and the error message minor code is 0001, then the errorCode is "1.0001"errorMessageArgs
- the string arguments required to format the error message in a specific localedetail
- the (optional) IData object containing further details of the messagereason
- the (optional) throwable object representing the cause of the connection exceptionpublic AdapterConnectionException(AdapterResourceBundleManager mgr, java.lang.String majorCode, java.lang.String errorCode, java.lang.String[] errorMessageArgs, com.wm.data.IData detail, java.lang.Throwable reason, boolean log)
mgr
- the AdapterResourceBundleManager for this adapter,
obtained by calling the WmAdapter.getAdapterResourceBundleManager()
method.errorCode
- the string consisting of the adapter's error major code and the error message's minor code
formatted as "{adapter_major_code}.{error_message_minorcode}". For example, if the adapter's major code is 1 and the error message minor code is 0001, then the errorCode is "1.0001"errorMessageArgs
- the string arguments required to format the error message in a specific localedetail
- the (optional) IData object containing further details of the messagereason
- the (optional) throwable object representing the cause of the connection exceptionlog
- exception to be logged?public boolean isFatal()
By default, newly created AdapterConnectionExceptions have this property set to true.
public void setFatal(boolean isFatal)
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.