Class ThrowableInfo
-
- All Implemented Interfaces:
@Serializable() public final class ThrowableInfoStructured representation of a Throwable, which can be serialized and sent back to the client or logged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classThrowableInfo.CompanionStatic methods and properties.
-
Field Summary
Fields Modifier and Type Field Description private StringcaseIdprivate Integercodeprivate StringcodeUrlprivate Stringdetailsprivate Stringstrikeprivate LongtimeStampprivate Stringtitleprivate List<StackTraceItem>stackprivate Stringtypepublic final static ThrowableInfo.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetCaseId()final UnitsetCaseId(String caseId)final IntegergetCode()final UnitsetCode(Integer code)final StringgetCodeUrl()final UnitsetCodeUrl(String codeUrl)final StringgetDetails()final UnitsetDetails(String details)final StringgetStrike()final UnitsetStrike(String strike)final LonggetTimeStamp()final UnitsetTimeStamp(Long timeStamp)final StringgetTitle()final UnitsetTitle(String title)final List<StackTraceItem>getStack()final UnitsetStack(List<StackTraceItem> stack)final StringgetType()final UnitsetType(String type)final ThrowableInfocopy()Clones current instance into a new ThrowableInfo instance. final StringtoJson(Boolean hideStackTrace)Returns a JSON representation of this object. final BooleansaveInto(String directoryPath)Saves the error information into a file in the given directory. -
-
Method Detail
-
getCodeUrl
final String getCodeUrl()
-
setCodeUrl
final Unit setCodeUrl(String codeUrl)
-
getDetails
final String getDetails()
-
setDetails
final Unit setDetails(String details)
-
getTimeStamp
final Long getTimeStamp()
-
setTimeStamp
final Unit setTimeStamp(Long timeStamp)
-
getStack
final List<StackTraceItem> getStack()
-
setStack
final Unit setStack(List<StackTraceItem> stack)
-
copy
final ThrowableInfo copy()
Clones current instance into a new ThrowableInfo instance.
-
-
-
-