Class MavanagaiataMojoException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    CheckMojoException

    class MavanagaiataMojoException
    extends Exception
    A generic exception used to relay an error during mojo execution
    Since:
    0.6.0
    Author:
    Sebastian Staudt
    • Constructor Detail

      • MavanagaiataMojoException

        MavanagaiataMojoException​(String message,
                                  Throwable cause)
        Creates a new exception with the given message and cause
        Parameters:
        message - The message used for the exception
        cause - The cause for this exception
    • Method Detail

      • create

        static MavanagaiataMojoException create​(String message,
                                                Throwable cause,
                                                Object... args)
        Creates a new exception with the given message an cause

        Additional arguments will be interpolated into the message with String.format(String, Object...).

        Parameters:
        message - The message used for the exception
        cause - The cause for this exception
        args - Additional arguments to interpolate into the message
        Returns:
        A MavanagaiataMojoException created from the given parameters
      • isGraceful

        boolean isGraceful()
        Returns whether this exception should lead to a graceful build failure
        Returns:
        true if this is a graceful error