Package org.apache.maven.api.cli
Class ParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.maven.api.services.MavenException
org.apache.maven.api.cli.ParserException
- All Implemented Interfaces:
Serializable
Represents an exception that occurs during the parsing of Maven command-line arguments.
This exception is typically thrown when there are user errors in the command-line input,
such as invalid arguments or references to missing files. When this exception is thrown,
it indicates that the Maven execution should be stopped and the user should correct the issue.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionParserException
(String message) Constructs a new ParserException with the specified detail message.ParserException
(String message, Throwable cause) Constructs a new ParserException 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
-
ParserException
Constructs a new ParserException with the specified detail message.- Parameters:
message
- the detail message explaining the cause of the exception
-
ParserException
Constructs a new ParserException with the specified detail message and cause.- Parameters:
message
- the detail message explaining the cause of the exceptioncause
- the underlying cause of the exception
-