Package org.apache.maven.api.cli
Class InvokerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.maven.api.services.MavenException
org.apache.maven.api.cli.InvokerException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LookupInvoker.ExitException
Represents an exception that occurs during the invocation of a Maven build or command.
This exception is typically thrown when there are errors during the execution of a Maven
process, such as build failures, plugin errors, or other runtime issues.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionInvokerException
(String message) Constructs a newInvokerException
with the specified detail message.InvokerException
(String message, Throwable cause) Constructs a newInvokerException
with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvokerException
Constructs a newInvokerException
with the specified detail message.- Parameters:
message
- the detail message explaining the cause of the exception
-
InvokerException
Constructs a newInvokerException
with the specified detail message and cause.- Parameters:
message
- the detail message explaining the cause of the exceptioncause
- the underlying cause of the exception
-