public class ThrowableDetails extends Object implements Serializable
The details of a Throwable
.
Instances of this class are guaranteed to be Serializable
, unlike Throwable
s, which should be, but
in practice often aren't.
Modifier and Type | Method and Description |
---|---|
static ThrowableDetails |
fromThrowable(Throwable throwable) |
static ThrowableDetails |
fromThrowable(Throwable throwable,
Map<String,String> metadata) |
com.google.common.collect.ImmutableList<String> |
getCauseStack() |
String |
getMessage() |
Map<String,String> |
getMetadata() |
String |
getName() |
Long |
getRepositoryId() |
String |
getStackTrace() |
@Nullable public static ThrowableDetails fromThrowable(@Nullable Throwable throwable)
@Nullable public static ThrowableDetails fromThrowable(@Nullable Throwable throwable, @Nullable Map<String,String> metadata)
public String getName()
public String getMessage()
public String getStackTrace()
@Nullable public Long getRepositoryId()
@NotNull public com.google.common.collect.ImmutableList<String> getCauseStack()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.