|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface LocationAwareException
A LocationAwareException is an exception which can be annotated with a location in a script. Note that most implementations of this interface are generated dynamically by an org.gradle.api.internal.ExceptionAnalyser.
Method Summary | |
---|---|
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
|
getReportableCauses()
Returns the reportable causes for this failure. |
ScriptSource
|
getScriptSource()
Returns the source of the script where this exception occurred. |
Method Detail |
---|
public java.lang.Integer getLineNumber()
public java.lang.String getLocation()
Returns a description of the location of where this exception occurred.
public java.lang.String getMessage()
public java.lang.String getOriginalMessage()
Returns the undecorated message of this exception.
public java.util.List getReportableCauses()
public ScriptSource getScriptSource()
Returns the source of the script where this exception occurred.
Groovy Documentation