Package org.apache.maven.plugin
Class AbstractMojoExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.plugin.AbstractMojoExecutionException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MojoExecutionException
,MojoFailureException
public abstract class AbstractMojoExecutionException extends java.lang.Exception
Base exception.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
longMessage
protected java.lang.Object
source
-
Constructor Summary
Constructors Constructor Description AbstractMojoExecutionException(java.lang.String message)
AbstractMojoExecutionException(java.lang.String message, java.lang.Throwable cause)
AbstractMojoExecutionException(java.lang.Throwable cause)
Constructs a newAbstractMojoExecutionException
exception wrapping an underlyingThrowable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLongMessage()
java.lang.Object
getSource()
-
-
-
Constructor Detail
-
AbstractMojoExecutionException
public AbstractMojoExecutionException(java.lang.String message)
-
AbstractMojoExecutionException
public AbstractMojoExecutionException(java.lang.String message, java.lang.Throwable cause)
-
AbstractMojoExecutionException
public AbstractMojoExecutionException(java.lang.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
-
-