Package com.atlassian.bamboo.logger
Class ThrowableDetails
- java.lang.Object
-
- com.atlassian.bamboo.logger.ThrowableDetails
-
- All Implemented Interfaces:
Serializable
public class ThrowableDetails extends Object implements Serializable
The details of a
Throwable
.Instances of this class are guaranteed to be
Serializable
, unlikeThrowable
s, which should be, but in practice often aren't.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable ThrowableDetails
fromThrowable(@Nullable Throwable throwable)
static @Nullable ThrowableDetails
fromThrowable(@Nullable Throwable throwable, @Nullable Map<String,String> metadata)
@NotNull com.google.common.collect.ImmutableList<String>
getCauseStack()
String
getMessage()
@NotNull Map<String,String>
getMetadata()
String
getName()
@Nullable Long
getRepositoryId()
String
getStackTrace()
-
-
-
Method Detail
-
fromThrowable
@Nullable public static @Nullable ThrowableDetails fromThrowable(@Nullable @Nullable Throwable throwable)
-
fromThrowable
@Nullable public static @Nullable ThrowableDetails fromThrowable(@Nullable @Nullable Throwable throwable, @Nullable @Nullable Map<String,String> metadata)
-
getName
public String getName()
-
getMessage
public String getMessage()
-
getStackTrace
public String getStackTrace()
-
getRepositoryId
@Nullable public @Nullable Long getRepositoryId()
-
getCauseStack
@NotNull public @NotNull com.google.common.collect.ImmutableList<String> getCauseStack()
-
-