Package overit.geocall.util
Class ExceptionWrapper
java.lang.Object
overit.geocall.util.ExceptionWrapper
- All Implemented Interfaces:
HtmlText
This class wraps an Exception adding some utility to transform the stacktrace
into simple text rather than html compliant string.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates the ExceptionWrapper starting from theExceptionto wrapExceptionWrapper(Exception e, int traceLimit) Creates the ExceptionWrapper starting from theExceptionto wrap and the limit on the exception's causes that will be added to the result -
Method Summary
-
Field Details
-
_exception
-
_traceLimit
protected final int _traceLimit
-
-
Constructor Details
-
ExceptionWrapper
Creates the ExceptionWrapper starting from theExceptionto wrap- Parameters:
e- exception to wrap
-
ExceptionWrapper
Creates the ExceptionWrapper starting from theExceptionto wrap and the limit on the exception's causes that will be added to the result- Parameters:
e- exception to wraptraceLimit- Maximum number of exception's cause that will be added to thetoString()ortoHtml()result.
-
-
Method Details
-
getException
Returns the wrappedException- Returns:
- The exception
-
toString
Returns the string representation of the Exception wrapped -
toHtml
Returns the html representation of the Exception wrapped
-