Package com.google.caliper.bridge
Class FailureLogMessage
- java.lang.Object
-
- com.google.caliper.bridge.LogMessage
-
- com.google.caliper.bridge.FailureLogMessage
-
- All Implemented Interfaces:
Serializable
public abstract class FailureLogMessage extends LogMessage implements Serializable
A message containing information on a failure encountered by the worker JVM.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FailureLogMessage()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaccept(LogMessageVisitor visitor)static FailureLogMessagecreate(Throwable e)Creates a new log message for the givenThrowable.abstract StringexceptionType()The name of the type of the exception that was thrown.abstract Stringmessage()Returns the message of the exception that was thrown.abstract StringstackTrace()The full stack trace of the exception.
-
-
-
Method Detail
-
create
public static FailureLogMessage create(Throwable e)
Creates a new log message for the givenThrowable.
-
exceptionType
public abstract String exceptionType()
The name of the type of the exception that was thrown.
-
message
@Nullable public abstract String message()
Returns the message of the exception that was thrown.
-
stackTrace
public abstract String stackTrace()
The full stack trace of the exception.
-
accept
public final void accept(LogMessageVisitor visitor)
- Specified by:
acceptin classLogMessage
-
-