org.apache.maven.lifecycle
Class LifecyclePhaseNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.lifecycle.LifecyclePhaseNotFoundException
All Implemented Interfaces:
Serializable

public class LifecyclePhaseNotFoundException
extends Exception

Signals a failure to locate the lifecycle for some phase.

Author:
Benjamin Bentmann
See Also:
Serialized Form

Constructor Summary
LifecyclePhaseNotFoundException(String message, String lifecyclePhase)
          Creates a new exception to indicate that the specified lifecycle phase is not defined by any known lifecycle.
 
Method Summary
 String getLifecyclePhase()
          Gets the lifecycle phase that was not found.
 
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

LifecyclePhaseNotFoundException

public LifecyclePhaseNotFoundException(String message,
                                       String lifecyclePhase)
Creates a new exception to indicate that the specified lifecycle phase is not defined by any known lifecycle.

Parameters:
message - The detail message, may be null.
lifecyclePhase - The name of the lifecycle phase that could not be located, may be null.
Method Detail

getLifecyclePhase

public String getLifecyclePhase()
Gets the lifecycle phase that was not found.

Returns:
The lifecycle phase that was not found, never null.


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