org.apache.maven.plugin
Class MojoExecutionException

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.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

Field Summary
 
Fields inherited from class org.apache.maven.plugin.AbstractMojoExecutionException
longMessage, source
 
Constructor Summary
MojoExecutionException(Object source, String shortMessage, String longMessage)
          Construct a new MojoExecutionException 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.
MojoExecutionException(String message)
          Construct a new MojoExecutionException exception providing a message.
MojoExecutionException(String message, Exception cause)
          Construct a new MojoExecutionException exception wrapping an underlying Exception and providing a message.
MojoExecutionException(String message, Throwable cause)
          Construct a new MojoExecutionException 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

MojoExecutionException

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

MojoExecutionException

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

Parameters:
message -
cause -

MojoExecutionException

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

Parameters:
message -
cause -

MojoExecutionException

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

Parameters:
message -


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.