public class OMSException extends Exception
A OMSException consists of the following parts:
| Constructor and Description |
|---|
OMSException(String errorCode,
String message)
Constructs a
OMSException with the specified detail message
and error code. |
OMSException(String errorCode,
String message,
Throwable cause)
Constructs a
OMSException with the specified detail message,
error code and cause. |
OMSException(String errorCode,
Throwable cause)
Constructs a
OMSException with the specified error code and cause. |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Returns the error code of this
OMSException object. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OMSException(String errorCode, String message)
OMSException with the specified detail message
and error code.errorCode - a specified error codemessage - a description of the exceptionpublic OMSException(String errorCode, Throwable cause)
OMSException with the specified error code and cause.errorCode - a specified error codecause - the underlying cause of this exceptionpublic OMSException(String errorCode, String message, Throwable cause)
OMSException with the specified detail message,
error code and cause.errorCode - a specified error codemessage - a description of the exceptioncause - the underlying cause of this exceptionpublic String getErrorCode()
OMSException object.Copyright © 2017–2018 OpenMessaging. All rights reserved.