|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.apache.tools.ant.BuildException
Signals an error condition during a build.
| Constructor Summary | |
BuildException()
Constructs a build exception with no descriptive information. |
|
BuildException(java.lang.String msg)
Constructs an exception with the given descriptive message. |
|
BuildException(java.lang.String msg,
Location location)
Constructs an exception with the given descriptive message and a location in a file. |
|
BuildException(java.lang.String msg,
java.lang.Throwable cause)
Constructs an exception with the given message and exception as a root cause. |
|
BuildException(java.lang.String msg,
java.lang.Throwable cause,
Location location)
Constructs an exception with the given message and exception as a root cause and a location in a file. |
|
BuildException(java.lang.Throwable cause)
Constructs an exception with the given exception as a root cause. |
|
BuildException(java.lang.Throwable cause,
Location location)
Constructs an exception with the given exception as a root cause and a location in a file. |
|
| Method Summary | |
java.lang.Throwable |
getException()
Returns the nested exception. |
Location |
getLocation()
Returns the file location where the error occured. |
void |
setLocation(Location location)
Sets the file location where the error occured. |
java.lang.String |
toString()
Returns the location of the error and the error message. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BuildException()
public BuildException(java.lang.String msg)
msg - Description of or information about the exception.
public BuildException(java.lang.String msg,
java.lang.Throwable cause)
msg - Description of or information about the exception.cause - Throwable that might have cause this one.
public BuildException(java.lang.String msg,
java.lang.Throwable cause,
Location location)
msg - Description of or information about the exception.cause - Exception that might have cause this one.location - Location in the project file where the error occured.public BuildException(java.lang.Throwable cause)
cause - Exception that might have caused this one.
public BuildException(java.lang.String msg,
Location location)
msg - Description of or information about the exception.location - Location in the project file where the error occured.
public BuildException(java.lang.Throwable cause,
Location location)
cause - Exception that might have cause this one.location - Location in the project file where the error occured.| Method Detail |
public java.lang.Throwable getException()
public java.lang.String toString()
toString in class java.lang.Throwablepublic void setLocation(Location location)
public Location getLocation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||