Class ParserException

All Implemented Interfaces:
Serializable

@Experimental public class ParserException extends MavenException
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 Details

    • ParserException

      public ParserException(String message)
      Constructs a new ParserException with the specified detail message.
      Parameters:
      message - the detail message explaining the cause of the exception
    • ParserException

      public ParserException(String message, Throwable cause)
      Constructs a new ParserException with the specified detail message and cause.
      Parameters:
      message - the detail message explaining the cause of the exception
      cause - the underlying cause of the exception