public abstract class CodedExceptionDefStatusCode extends Exception implements CodedExceptionBase
| Constructor and Description |
|---|
CodedExceptionDefStatusCode() |
CodedExceptionDefStatusCode(String message) |
CodedExceptionDefStatusCode(String message,
Throwable cause) |
CodedExceptionDefStatusCode(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract StatusCode |
generateStatusCode()
the implementation of setStatusCode must provide the statuscode you want
your exception to have.
|
String |
getMessage() |
String |
getOriginalMessage()
Return the original message without the status code prefix
|
StatusCode |
getStatus()
ensures that a Coded Exception has a StatusCode that is accessible
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CodedExceptionDefStatusCode()
public CodedExceptionDefStatusCode(String message)
public CodedExceptionDefStatusCode(Throwable cause)
protected abstract StatusCode generateStatusCode()
public StatusCode getStatus()
CodedExceptionBasegetStatus in interface CodedExceptionBasepublic String getMessage()
getMessage in class Throwablepublic String getOriginalMessage()
CodedExceptionBasegetOriginalMessage in interface CodedExceptionBaseCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.