public class LocationAwareException extends GradleException
LocationAwareException is an exception which can be annotated with a location in a script.| Constructor and Description |
|---|
LocationAwareException(Throwable cause,
Throwable target,
ScriptSource source,
Integer lineNumber) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getLineNumber()
Returns the line in the script where this exception occurred, if known.
|
String |
getLocation()
Returns a description of the location of where this exception occurred.
|
String |
getMessage()
Returns the fully formatted error message, including the location.
|
String |
getOriginalMessage()
Returns the undecorated message of this exception.
|
List<Throwable> |
getReportableCauses()
Returns the reportable causes for this failure.
|
ScriptSource |
getScriptSource()
Returns the source of the script where this exception occurred.
|
Throwable |
getTarget()
Returns the target exception.
|
void |
visitReportableCauses(TreeVisitor<? super Throwable> visitor)
Visits the reportable causes for this failure.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic LocationAwareException(Throwable cause, Throwable target, ScriptSource source, Integer lineNumber)
public Throwable getTarget()
public String getOriginalMessage()
Returns the undecorated message of this exception.
public ScriptSource getScriptSource()
Returns the source of the script where this exception occurred.
public String getLocation()
Returns a description of the location of where this exception occurred.
public Integer getLineNumber()
public String getMessage()
getMessage in class Throwablepublic List<Throwable> getReportableCauses()
public void visitReportableCauses(TreeVisitor<? super Throwable> visitor)
Copyright © 2013. All rights reserved