Class Result


  • public class Result
    extends Object
    A Result class.
    Since:
    1.2.6
    Author:
    unknown
    • Constructor Detail

      • Result

        public Result​(boolean failed)
      • Result

        public Result​(boolean failed,
                      String message)
    • Method Detail

      • fail

        public static Result fail​(String message)
        Returns a Result which failed.
        Parameters:
        message - an error message
        Returns:
        a Result which failed
      • pass

        public static Result pass()
        Returns a Result which passed.
        Returns:
        a Result which passed
      • wasFailed

        public boolean wasFailed()
        Returns true if the Result was a failure.
        Returns:
        true if the Result was a failure
      • getMessage

        public String getMessage()
        Retrieves the error message.
        Returns:
        the error message