Class InvokerException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LookupInvoker.ExitException

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

    • InvokerException

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

      public InvokerException(@Nullable String message, @Nullable Throwable cause)
      Constructs a new InvokerException 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