org.apache.maven.shared.scriptinterpreter
Class RunFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.shared.scriptinterpreter.RunFailureException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RunErrorException

public class RunFailureException
extends Exception

Signals a failure of a sub build run by the Invoker Plugin. This can be caused by an unsuccessful pre-/post-build script or a failure of the forked Maven build itself.

Version:
$Id: RunFailureException.java 1199475 2011-11-08 21:51:13Z olamy $
Author:
Benjamin Bentmann
See Also:
Serialized Form

Constructor Summary
RunFailureException(String message, String type)
          Creates a new exception with the specified detail message.
 
Method Summary
 String getType()
          Returns the type of build failure.
 
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

RunFailureException

public RunFailureException(String message,
                           String type)
Creates a new exception with the specified detail message.

Parameters:
message - The detail message, may be null.
type - The type of build failure, may not be null.
Method Detail

getType

public String getType()
Returns the type of build failure.

Returns:
The type of build failure, never null.


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