Package org.apache.maven.shared.invoker
Class MavenInvocationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.shared.invoker.MavenInvocationException
-
- All Implemented Interfaces:
Serializable
public class MavenInvocationException extends Exception
Signals an error during the construction of the command line used to invoke Maven, e.g. illegal invocation arguments. This should not be confused with a failure of the invoked Maven build itself which will be reported by means of a non-zero exit code.- See Also:
InvocationResult.getExitCode()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MavenInvocationException(String message)
Creates a new exception using the specified detail message.MavenInvocationException(String message, Throwable cause)
Creates a new exception using 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 Detail
-
MavenInvocationException
public MavenInvocationException(String message, Throwable cause)
Creates a new exception using the specified detail message and cause.- Parameters:
message
- The detail message for this exception, may benull
.cause
- The nested exception, may benull
.
-
MavenInvocationException
public MavenInvocationException(String message)
Creates a new exception using the specified detail message.- Parameters:
message
- The detail message for this exception, may benull
.
-
-