Constructors Summary |
---|
public BuildException()Constructs a build exception with no descriptive information.
super();
|
public BuildException(String message)Constructs an exception with the given descriptive message.
super(message);
|
public BuildException(String message, Throwable cause)Constructs an exception with the given message and exception as
a root cause.
super(message);
this.cause = cause;
|
public BuildException(String msg, Throwable cause, Location location)Constructs an exception with the given message and exception as
a root cause and a location in a file.
this(msg, cause);
this.location = location;
|
public BuildException(Throwable cause)Constructs an exception with the given exception as a root cause.
super(cause.toString());
this.cause = cause;
|
public BuildException(String message, Location location)Constructs an exception with the given descriptive message and a
location in a file.
super(message);
this.location = location;
|
public BuildException(Throwable cause, Location location)Constructs an exception with the given exception as
a root cause and a location in a file.
this(cause);
this.location = location;
|
Methods Summary |
---|
public java.lang.Throwable | getCause()Returns the nested exception, if any.
return getException();
|
public java.lang.Throwable | getException()Returns the nested exception, if any.
return cause;
|
public Location | getLocation()Returns the file location where the error occurred.
return location;
|
public void | printStackTrace()Prints the stack trace for this exception and any
nested exception to System.err .
printStackTrace(System.err);
|
public void | printStackTrace(java.io.PrintStream ps)Prints the stack trace of this exception and any nested
exception to the specified PrintStream.
synchronized (ps) {
super.printStackTrace(ps);
if (cause != null) {
ps.println("--- Nested Exception ---");
cause.printStackTrace(ps);
}
}
|
public void | printStackTrace(java.io.PrintWriter pw)Prints the stack trace of this exception and any nested
exception to the specified PrintWriter.
synchronized (pw) {
super.printStackTrace(pw);
if (cause != null) {
pw.println("--- Nested Exception ---");
cause.printStackTrace(pw);
}
}
|
public void | setLocation(Location location)Sets the file location where the error occurred.
this.location = location;
|
public java.lang.String | toString()Returns the location of the error and the error message.
return location.toString() + getMessage();
|