Class CheckMojoException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.koraktor.mavanagaiata.mojo.MavanagaiataMojoException
-
- com.github.koraktor.mavanagaiata.mojo.CheckMojoException
-
- All Implemented Interfaces:
Serializable
class CheckMojoException extends MavanagaiataMojoException
Exception type thrown during repository checks- Since:
- 0.8.0
- Author:
- Sebastian Staudt
- See Also:
CheckMojo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classCheckMojoException.TypeTypes of failures
-
Field Summary
Fields Modifier and Type Field Description (package private) CheckMojoException.Typetype
-
Constructor Summary
Constructors Constructor Description CheckMojoException(CheckMojoException.Type type, String... args)Creates a new exception for the given check failure type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static StringgetMessageForType(CheckMojoException.Type type, String... args)Returns a message for the given type and (optional) arguments(package private) booleanisGraceful()Returns whether this exception should lead to a graceful build failure-
Methods inherited from class com.github.koraktor.mavanagaiata.mojo.MavanagaiataMojoException
create
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
type
final CheckMojoException.Type type
-
-
Constructor Detail
-
CheckMojoException
CheckMojoException(CheckMojoException.Type type, String... args)
Creates a new exception for the given check failure type- Parameters:
type- The type of failureargs- The arguments to integrate into the error message
-
-
Method Detail
-
getMessageForType
private static String getMessageForType(CheckMojoException.Type type, String... args)
Returns a message for the given type and (optional) arguments- Parameters:
type- The type of exceptionargs- The arguments to integrate into the error message- Returns:
- A formatted exception message
-
isGraceful
boolean isGraceful()
Description copied from class:MavanagaiataMojoExceptionReturns whether this exception should lead to a graceful build failure- Overrides:
isGracefulin classMavanagaiataMojoException- Returns:
trueif this is a graceful error
-
-