Class Die

    • Constructor Detail

      • Die

        public Die​(String why)
        Construct a new message explaining what has gone wrong.
        Parameters:
        why - the message to show to the end-user.
      • Die

        public Die​(String why,
                   Throwable cause)
        Construct a new message explaining what has gone wrong.
        Parameters:
        why - the message to show to the end-user.
        cause - why the command has failed.
      • Die

        public Die​(boolean aborted)
        Construct a new exception reflecting the fact that the command execution has been aborted before running.
        Parameters:
        aborted - boolean indicating the fact the execution has been aborted
        Since:
        3.4
      • Die

        public Die​(boolean aborted,
                   Throwable cause)
        Construct a new exception reflecting the fact that the command execution has been aborted before running.
        Parameters:
        aborted - boolean indicating the fact the execution has been aborted
        cause - can be null
        Since:
        4.2
    • Method Detail

      • isAborted

        public boolean isAborted()
        Check if this exception should cause the execution to be aborted.
        Returns:
        boolean indicating that the execution should be aborted
        Since:
        3.4