Class 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
    • Constructor Detail

      • Exception

        public Exception​(String type,
                         String message)
    • 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"
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object