public class SerializableErrorEntity extends Object
WebCodeException.| Modifier and Type | Field and Description |
|---|---|
protected static char |
ENTITY_CHAR_SEPARATOR |
| Constructor and Description |
|---|
SerializableErrorEntity() |
SerializableErrorEntity(ErrorCode errorCode) |
SerializableErrorEntity(Exception e) |
SerializableErrorEntity(Exception e,
int lines) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncodedTrace() |
String |
getExceptionClass() |
int |
getId() |
String |
getMessage() |
boolean |
hasStackTrace()
Checks if a stacktrace is available.
|
protected void |
setEncodedTrace(String encodedTrace)
Sets the enconded trace.
|
protected void |
setExceptionClass(String exceptionClass)
Sets the exception class.
|
protected void |
setMessage(String message)
Sets the message.
|
protected static final char ENTITY_CHAR_SEPARATOR
public SerializableErrorEntity()
public SerializableErrorEntity(ErrorCode errorCode)
errorCode - the errorc code to serializepublic SerializableErrorEntity(Exception e)
e - the exception to serializepublic SerializableErrorEntity(Exception e, int lines)
e - the exception to serializelines - the number of lines in the stacktrace to serializepublic int getId()
public String getMessage()
public String getExceptionClass()
Exceptionpublic String getEncodedTrace()
public boolean hasStackTrace()
protected void setMessage(String message)
message - protected void setExceptionClass(String exceptionClass)
exceptionClass - protected void setEncodedTrace(String encodedTrace)
encodedTrace - Copyright © 2020. All Rights Reserved.