public class ErrorRuntimeException extends LspsRuntimeException implements IErrorException
ErrorException.| Constructor and Description |
|---|
ErrorRuntimeException(ErrorException e)
Creates new instance.
|
ErrorRuntimeException(String errorCode)
Creates new instance.
|
ErrorRuntimeException(String errorCode,
String message)
Creates new instance.
|
ErrorRuntimeException(String errorCode,
String message,
Throwable cause)
Creates new instance.
|
ErrorRuntimeException(String errorCode,
Throwable cause)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContext(String contextId,
String context)
Adds a context.
|
void |
addContextIfIdNotExists(String contextId,
String context)
Adds a context if contextId not exists.
|
void |
addContexts(List<ErrorContext> contexts)
Adds all contexts.
|
ErrorContext |
findContext(String id) |
String |
getBareMessage()
Returns the message in the bare form (without the error code part).
|
List<ErrorContext> |
getContexts()
Returns contexts in which exception occurs.
|
String |
getErrorCode()
Returns the error code.
|
String |
getMessage() |
getModelInstanceStates, setModelInstanceStatesaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ErrorRuntimeException(ErrorException e)
e - public ErrorRuntimeException(String errorCode)
errorCode - the error codepublic ErrorRuntimeException(String errorCode, String message)
errorCode - the error codemessage - the messagepublic ErrorRuntimeException(String errorCode, Throwable cause)
errorCode - the error codecause - the causepublic String getErrorCode()
IErrorExceptiongetErrorCode in interface IErrorExceptionpublic String getBareMessage()
IErrorExceptiongetBareMessage in interface IErrorExceptionpublic List<ErrorContext> getContexts()
IErrorExceptiongetContexts in interface IErrorExceptionpublic ErrorContext findContext(String id)
findContext in interface IErrorExceptionnull if not foundpublic void addContext(String contextId, String context)
contextId - the context idcontext - the exception contextpublic void addContextIfIdNotExists(String contextId, String context)
contextId - context - public void addContexts(List<ErrorContext> contexts)
contexts - public String getMessage()
getMessage in class ThrowableCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.