public class CodedRuntimeException extends RuntimeException implements CodedExceptionBase
Constructor and Description |
---|
CodedRuntimeException(StatusCode statusCode) |
CodedRuntimeException(StatusCode statusCode,
String message) |
CodedRuntimeException(StatusCode statusCode,
String message,
Throwable cause) |
CodedRuntimeException(StatusCode statusCode,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
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 CodedRuntimeException(StatusCode statusCode)
public CodedRuntimeException(StatusCode statusCode, String message)
public CodedRuntimeException(StatusCode statusCode, String message, Throwable cause)
public CodedRuntimeException(StatusCode statusCode, Throwable cause)
public String getMessage()
getMessage
in class Throwable
public StatusCode getStatus()
CodedExceptionBase
getStatus
in interface CodedExceptionBase
public String getOriginalMessage()
CodedExceptionBase
getOriginalMessage
in interface CodedExceptionBase
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.