|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.gradle.api.GradleException org.gradle.api.LocationAwareException
public class LocationAwareException
A LocationAwareException
is an exception which can be annotated with a location in a script.
Constructor Summary | |
---|---|
LocationAwareException(Throwable cause,
Throwable target,
org.gradle.groovy.scripts.ScriptSource source,
Integer lineNumber)
|
Method Summary | |
---|---|
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. |
org.gradle.groovy.scripts.ScriptSource |
getScriptSource()
Returns the source of the script where this exception occurred. |
Throwable |
getTarget()
Returns the target exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocationAwareException(Throwable cause, Throwable target, org.gradle.groovy.scripts.ScriptSource source, Integer lineNumber)
Method Detail |
---|
public Throwable getTarget()
public String getOriginalMessage()
Returns the undecorated message of this exception.
public org.gradle.groovy.scripts.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 Throwable
public List<Throwable> getReportableCauses()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |