org.apache.maven
Class InvalidTaskException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.BuildFailureException
              extended by org.apache.maven.InvalidTaskException
All Implemented Interfaces:
java.io.Serializable

public class InvalidTaskException
extends BuildFailureException

Exception which occurs when a task or goal is specified on the command line but cannot be resolved for execution. This validation is done up front, and this exception wraps the TaskValidationResult generated as a result of verifying the task.

Author:
jdcasey
See Also:
Serialized Form

Constructor Summary
InvalidTaskException(TaskValidationResult result, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getTask()
           
 
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

InvalidTaskException

public InvalidTaskException(TaskValidationResult result,
                            java.lang.Throwable cause)
Method Detail

getTask

public java.lang.String getTask()


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