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

A simplified representation of an exception

  • Constructor Details

  • Method Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object