org.apache.maven.werkz
Class UnattainableGoalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.werkz.WerkzException
org.apache.maven.werkz.UnattainableGoalException
- All Implemented Interfaces:
- java.io.Serializable
- public class UnattainableGoalException
- extends WerkzException
Indicates an error while attempting to satisfy a Goal
.
- Author:
- bob mcwhirter
- See Also:
Goal.attain(org.apache.maven.werkz.Session)
,
Serialized Form
Constructor Summary |
UnattainableGoalException(java.lang.String goalName,
java.lang.Throwable rootCause)
Construct with a goal name and root cause. |
Method Summary |
java.lang.String |
getGoalName()
Retrieve the name of the goal in which the error occurred. |
java.lang.String |
getMessage()
|
java.lang.Throwable |
getRootCause()
Retrieve the root cause of the error. |
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 |
UnattainableGoalException
public UnattainableGoalException(java.lang.String goalName,
java.lang.Throwable rootCause)
- Construct with a goal name and root cause.
- Parameters:
goalName
- The name of the goal in which an error occurred.rootCause
- The original error.
getGoalName
public java.lang.String getGoalName()
- Retrieve the name of the goal in which the error occurred.
- Returns:
- The name of the goal in which the error occurred.
getRootCause
public java.lang.Throwable getRootCause()
- Retrieve the root cause of the error.
- Returns:
- The root cause.
getMessage
public java.lang.String getMessage()
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.