public class CodedException extends Exception implements CodedExceptionBase
| Modifier and Type | Field and Description |
|---|---|
protected StatusCode |
status |
| Constructor and Description |
|---|
CodedException(StatusCode statusCode) |
CodedException(StatusCode statusCode,
String message) |
CodedException(StatusCode statusCode,
String message,
Throwable cause) |
CodedException(StatusCode statusCode,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
overrides getMessage to produce a message bearing the assigned statusCode
and the
the default Message of this exception type
|
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, toStringprotected StatusCode status
public CodedException(StatusCode statusCode)
public CodedException(StatusCode statusCode, String message)
public CodedException(StatusCode statusCode, Throwable cause)
public CodedException(StatusCode statusCode, String message, Throwable cause)
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.