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:
java.io.Serializable
public class MavenInvocationException extends java.lang.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(java.lang.String message)
Creates a new exception using the specified detail message.MavenInvocationException(java.lang.String message, java.lang.Throwable cause)
Creates a new exception using the specified detail message and cause.
-
-
-
Constructor Detail
-
MavenInvocationException
public MavenInvocationException(java.lang.String message, java.lang.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(java.lang.String message)
Creates a new exception using the specified detail message.- Parameters:
message
- The detail message for this exception, may benull
.
-
-