org.apache.maven.plugin
Class MojoExecutionException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           org.apache.maven.plugin.AbstractMojoExecutionException
org.apache.maven.plugin.AbstractMojoExecutionException
               org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- All Implemented Interfaces: 
- Serializable
- public class MojoExecutionException 
- extends AbstractMojoExecutionException
An exception occurring during the execution of a plugin.
 
 Throwing this exception causes a "BUILD ERROR" message to be displayed.
- Author:
- Brett Porter
- See Also:
- Serialized Form
 
 
| Constructor Summary | 
| MojoExecutionException(Object source,
                                             String shortMessage,
                                             String longMessage)Construct a new
 MojoExecutionExceptionexception providing the source and a short and long message:
 these messages are used to improve the message written at the end of Maven build. | 
| MojoExecutionException(String message)Construct a new
 MojoExecutionExceptionexception providing amessage. | 
| MojoExecutionException(String message,
                                             Exception cause)Construct a new
 MojoExecutionExceptionexception wrapping an underlyingExceptionand providing amessage. | 
| MojoExecutionException(String message,
                                             Throwable cause)Construct a new
 MojoExecutionExceptionexception wrapping an underlyingThrowableand providing amessage. | 
 
 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
MojoExecutionException
public MojoExecutionException(Object source,
                              String shortMessage,
                              String longMessage)
- Construct a new MojoExecutionExceptionexception providing the source and a short and long message:
 these messages are used to improve the message written at the end of Maven build.
 
- Parameters:
- source-
- shortMessage-
- longMessage-
 
MojoExecutionException
public MojoExecutionException(String message,
                              Exception cause)
- Construct a new MojoExecutionExceptionexception wrapping an underlyingExceptionand providing amessage.
 
- Parameters:
- message-
- cause-
 
MojoExecutionException
public MojoExecutionException(String message,
                              Throwable cause)
- Construct a new MojoExecutionExceptionexception wrapping an underlyingThrowableand providing amessage.
 
- Parameters:
- message-
- cause-
 
MojoExecutionException
public MojoExecutionException(String message)
- Construct a new MojoExecutionExceptionexception providing amessage.
 
- Parameters:
- message-
 
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.