Package io.cucumber.messages.types
Class Exception
- java.lang.Object
-
- io.cucumber.messages.types.Exception
-
public final class Exception extends Object
Represents the Exception message in Cucumber's message protocol- See Also:
- Github - Cucumber - Messages A simplified representation of an exception
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<String>getMessage()The message of exception that caused this result.Optional<String>getStackTrace()The stringified stack trace of the exception that caused this resultStringgetType()The type of the exception that caused this result.inthashCode()StringtoString()
-
-
-
Method Detail
-
getType
public String getType()
The type of the exception that caused this result. E.g. "Error" or "org.opentest4j.AssertionFailedError"
-
getMessage
public Optional<String> getMessage()
The message of exception that caused this result. E.g. expected: "a" but was: "b"
-
getStackTrace
public Optional<String> getStackTrace()
The stringified stack trace of the exception that caused this result
-
-