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, unlikeThrowables, 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 ThrowableDetailsfromThrowable(@Nullable Throwable throwable)static @Nullable ThrowableDetailsfromThrowable(@Nullable Throwable throwable, @Nullable Map<String,String> metadata)@NotNull com.google.common.collect.ImmutableList<String>getCauseStack()StringgetMessage()@NotNull Map<String,String>getMetadata()StringgetName()@Nullable LonggetRepositoryId()StringgetStackTrace()
-
-
-
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()
-
-