Class Failure


  • public class Failure
    extends Object
    A class that represents a failure.
    • Field Detail

      • message

        public final String message
        The message of the failure.
      • exception

        public final Exception exception
        The exception that caused the failure.
    • Constructor Detail

      • Failure

        public Failure​(Exception exception,
                       String message)
        Creates a new failure.
        Parameters:
        exception - the exception that caused the failure
        message - the message of the failure
      • Failure

        public Failure​(String message)
        Creates a new failure.
        Parameters:
        message - the message of the failure
      • Failure

        public Failure​(Exception exception)
        Creates a new failure.
        Parameters:
        exception - the exception that caused the failure