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, toString
public CodedExceptionDefStatusCode()
public CodedExceptionDefStatusCode(String message)
public CodedExceptionDefStatusCode(Throwable cause)
protected abstract StatusCode generateStatusCode()
public StatusCode getStatus()
CodedExceptionBase
getStatus
in interface CodedExceptionBase
public String getMessage()
getMessage
in class Throwable
public String getOriginalMessage()
CodedExceptionBase
getOriginalMessage
in interface CodedExceptionBase
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.