org.apache.maven.werkz
Class NoSuchGoalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.werkz.WerkzException
              extended by org.apache.maven.werkz.NoSuchGoalException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchGoalException
extends WerkzException

Indicates a request to attain an unknown Goal.

Author:
bob mcwhirter
See Also:
Goal.attain(org.apache.maven.werkz.Session), Serialized Form

Constructor Summary
NoSuchGoalException(java.lang.String goalName)
          Construct with the name of the unknown goal.
 
Method Summary
 java.lang.String getGoalName()
          Retrieve the unknown goal name.
 java.lang.String getMessage()
          Retrieve the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

NoSuchGoalException

public NoSuchGoalException(java.lang.String goalName)
Construct with the name of the unknown goal.

Parameters:
goalName - The unknown goal name.
Method Detail

getGoalName

public java.lang.String getGoalName()
Retrieve the unknown goal name.

Returns:
The unknown goal name.

getMessage

public java.lang.String getMessage()
Retrieve the error message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The error message.


Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.