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