public class BuildException extends RuntimeException
Constructor and Description |
---|
BuildException()
Constructs a build exception with no descriptive information.
|
BuildException(String message)
Constructs an exception with the given descriptive message.
|
BuildException(String message,
Location location)
Constructs an exception with the given descriptive message and a
location in a file.
|
BuildException(String message,
Throwable cause)
Constructs an exception with the given message and exception as
a root cause.
|
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.
|
BuildException(Throwable cause)
Constructs an exception with the given exception as a root cause.
|
BuildException(Throwable cause,
Location location)
Constructs an exception with the given exception as
a root cause and a location in a file.
|
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Returns the file location where the error occurred.
|
void |
setLocation(Location location)
Sets the file location where the error occurred.
|
String |
toString()
Returns the location of the error and the error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace
public BuildException()
public BuildException(String message)
message
- A description of or information about the exception.
Should not be null
.public BuildException(String message, Location location)
message
- A description of or information about the exception.
Should not be null
.location
- The location in the project file where the error
occurred. Must not be null
.public BuildException(String message, Throwable cause)
message
- A description of or information about the exception.
Should not be null
unless a cause is specified.cause
- The exception that might have caused this one.
May be null
.public BuildException(String msg, Throwable cause, Location location)
msg
- A description of or information about the exception.
Should not be null
unless a cause is specified.cause
- The exception that might have caused this one.
May be null
.location
- The location in the project file where the error
occurred. Must not be null
.public BuildException(Throwable cause)
cause
- The exception that might have caused this one.
Should not be null
.public BuildException(Throwable cause, Location location)
cause
- The exception that might have caused this one.
Should not be null
.location
- The location in the project file where the error
occurred. Must not be null
.public Location getLocation()
public void setLocation(Location location)
location
- The file location where the error occurred.
Must not be null
.