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