Class MavanagaiataMojoException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.koraktor.mavanagaiata.mojo.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 Summary
Constructors Constructor Description MavanagaiataMojoException(String message, Throwable cause)Creates a new exception with the given message and cause
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static MavanagaiataMojoExceptioncreate(String message, Throwable cause, Object... args)Creates a new exception with the given message an cause(package private) booleanisGraceful()Returns whether this exception should lead to a graceful build failure-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
create
static MavanagaiataMojoException create(String message, Throwable cause, Object... args)
Creates a new exception with the given message an causeAdditional arguments will be interpolated into the message with
String.format(String, Object...).- Parameters:
message- The message used for the exceptioncause- The cause for this exceptionargs- Additional arguments to interpolate into the message- Returns:
- A
MavanagaiataMojoExceptioncreated from the given parameters
-
isGraceful
boolean isGraceful()
Returns whether this exception should lead to a graceful build failure- Returns:
trueif this is a graceful error
-
-