Modifier and Type | Field and Description |
---|---|
private Location | location
Location in the build file where the exception occurred |
private static final long |
Access | Constructor and Description |
---|---|
public | |
public | BuildException(String
A description of or information about the exception.
Should not be message)null .Constructs an exception with the given descriptive message. |
public | BuildException(String
A description of or information about the exception.
Should not be pattern, Object... null .ditto formatArguments)Constructs an exception with the given format pattern and arguments. |
public | BuildException(String
A description of or information about the exception.
Should not be message, Throwable null unless a cause is specified.The exception that might have caused this one.
May be cause)null .Constructs an exception with the given message and exception as a root cause. |
public | BuildException(String
A description of or information about the exception.
Should not be message, Throwable null unless a cause is specified.The exception that might have caused this one.
May be cause, Location null .The location in the project file where the error
occurred. Must not be location)null .Constructs an exception with the given message and exception as a root cause and a location in a file. |
public | BuildException(Throwable
The exception that might have caused this one.
Should not be cause)null .Constructs an exception with the given exception as a root cause. |
public | BuildException(String
A description of or information about the exception.
Should not be message, Location null .The location in the project file where the error
occurred. Must not be location)null .Constructs an exception with the given descriptive message and a location in a file. |
public | BuildException(Throwable
The exception that might have caused this one.
Should not be cause, Location null .The location in the project file where the error
occurred. Must not be location)null .Constructs an exception with the given exception as a root cause and a location in a file. |
Modifier and Type | Method and Description |
---|---|
public Throwable | Returns: the nested exception, ornull if no
exception is associated with this one
Deprecated
Use
Returns the nested exception, if any.
getCause instead.
|
public Location | Returns: the file location where the error occurred.Returns the file location where the error occurred. |
public static BuildException | |
public void | setLocation(Location
The file location where the error occurred.
Must not be location)null .Sets the file location where the error occurred. |
public String | Returns: the location of the error and the error messageOverrides java. |
location | back to summary |
---|---|
private Location location Location in the build file where the exception occurred |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
BuildException | back to summary |
---|---|
public BuildException() Constructs a build exception with no descriptive information. |
BuildException | back to summary |
---|---|
public BuildException(String message) Constructs an exception with the given descriptive message.
|
BuildException | back to summary |
---|---|
public BuildException(String pattern, Object... formatArguments) Constructs an exception with the given format pattern and arguments.
|
BuildException | back to summary |
---|---|
public BuildException(String message, Throwable cause) Constructs an exception with the given message and exception as a root cause. |
BuildException | back to summary |
---|---|
public BuildException(String message, Throwable cause, Location location) Constructs an exception with the given message and exception as a root cause and a location in a file. |
BuildException | back to summary |
---|---|
public BuildException(Throwable cause) Constructs an exception with the given exception as a root cause.
|
BuildException | back to summary |
---|---|
public BuildException(String message, Location location) Constructs an exception with the given descriptive message and a location in a file. |
BuildException | back to summary |
---|---|
public BuildException(Throwable cause, Location location) Constructs an exception with the given exception as a root cause and a location in a file. |
getException | back to summary |
---|---|
public Throwable getException()
Deprecated Use Returns the nested exception, if any.
|
getLocation | back to summary |
---|---|
public Location getLocation() Returns the file location where the error occurred.
|
of | back to summary |
---|---|
public static BuildException of(Throwable t) Get a
|
setLocation | back to summary |
---|---|
public void setLocation(Location location) Sets the file location where the error occurred.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Returns the location of the error and the error message.
|