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