Package org.apache.maven.plugin
Class AbstractMojoExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.plugin.AbstractMojoExecutionException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MojoExecutionException
,MojoFailureException
public abstract class AbstractMojoExecutionException extends Exception
Base exception.- Author:
- Brett Porter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
longMessage
protected Object
source
-
Constructor Summary
Constructors Constructor Description AbstractMojoExecutionException(String message)
AbstractMojoExecutionException(String message, Throwable cause)
AbstractMojoExecutionException(Throwable cause)
Constructs a newAbstractMojoExecutionException
exception wrapping an underlyingThrowable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLongMessage()
Object
getSource()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AbstractMojoExecutionException
public AbstractMojoExecutionException(String message)
-
AbstractMojoExecutionException
public AbstractMojoExecutionException(String message, Throwable cause)
-
AbstractMojoExecutionException
public AbstractMojoExecutionException(Throwable cause)
Constructs a newAbstractMojoExecutionException
exception wrapping an underlyingThrowable
.- Parameters:
cause
- the cause which is saved for later retrieval by theThrowable.getCause()
method. Anull
value is permitted, and indicates that the cause is nonexistent or unknown.- Since:
- 3.8.3
-
-