@Api(allMethods=true) public class ExceptionDto extends Object implements Serializable
| Constructor and Description |
|---|
ExceptionDto()
Empty constructor for serialization purposes.
|
ExceptionDto(String className,
String message,
StackTraceElement[] stackTrace)
Constructor that takes all needed information on creation.
|
| Modifier and Type | Method and Description |
|---|---|
ExceptionDto |
getCause()
Set the cause exception to allow inclusion in the display.
|
String |
getClassName()
Returns the class name of the original exception.
|
int |
getExceptionCode()
Get the exception code (when it is a
GeomajasException). |
String |
getMessage()
Returns the message of the original exception.
|
StackTraceElement[] |
getStackTrace()
Returns the stack trace of the original exception.
|
void |
setCause(ExceptionDto cause)
Get the cause exception to allow inclusion in the error display.
|
void |
setClassName(String className)
Set the class name of the original exception.
|
void |
setExceptionCode(int exceptionCode)
Set the exception code (when it is a
GeomajasException. |
void |
setMessage(String message)
Set the message of the original exception.
|
void |
setStackTrace(StackTraceElement[] stackTrace)
Set the stack trace of the original exception.
|
public ExceptionDto()
public ExceptionDto(String className, String message, StackTraceElement[] stackTrace)
className - The class name of the original exception.message - The exception message.stackTrace - The full stack trace.public String getClassName()
public void setClassName(String className)
className - The exception class name.public String getMessage()
public void setMessage(String message)
message - The exception message.public StackTraceElement[] getStackTrace()
public void setStackTrace(StackTraceElement[] stackTrace)
stackTrace - The exception stack trace.public ExceptionDto getCause()
public void setCause(ExceptionDto cause)
cause - cause exception DTOpublic int getExceptionCode()
GeomajasException).public void setExceptionCode(int exceptionCode)
GeomajasException.exceptionCode - GeomajasException exception codeCopyright © 2015 Geosparc. All Rights Reserved.