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, toString
protected 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()
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.