org.apache.maven.plugin
Class MojoFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.plugin.AbstractMojoExecutionException
              extended by org.apache.maven.plugin.MojoFailureException
All Implemented Interfaces:
Serializable

public class MojoFailureException
extends AbstractMojoExecutionException

An exception occurring during the execution of a plugin (such as a compilation failure).
Throwing this exception causes a "BUILD FAILURE" message to be displayed.

Author:
Brett Porter
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.maven.plugin.AbstractMojoExecutionException
longMessage, source
 
Constructor Summary
MojoFailureException(Object source, String shortMessage, String longMessage)
          Construct a new MojoFailureException exception providing the source and a short and long message: these messages are used to improve the message written at the end of Maven build.
MojoFailureException(String message)
          Construct a new MojoFailureException exception providing a message.
MojoFailureException(String message, Throwable cause)
          Construct a new MojoFailureException exception wrapping an underlying Throwable and providing a message.
 
Method Summary
 
Methods inherited from class org.apache.maven.plugin.AbstractMojoExecutionException
getLongMessage, getSource
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MojoFailureException

public MojoFailureException(Object source,
                            String shortMessage,
                            String longMessage)
Construct a new MojoFailureException exception 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 -

MojoFailureException

public MojoFailureException(String message)
Construct a new MojoFailureException exception providing a message.

Parameters:
message -

MojoFailureException

public MojoFailureException(String message,
                            Throwable cause)
Construct a new MojoFailureException exception wrapping an underlying Throwable and providing a message.

Parameters:
message -
cause -
Since:
2.0.9


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.