|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.GradleScriptException
public class GradleScriptException
A GradleScriptException
is thrown when an exception occurs in the parsing or execution of a
script.
Constructor Summary | |
---|---|
GradleScriptException(java.lang.String message,
java.lang.Throwable cause,
ScriptSource scriptSource)
|
|
GradleScriptException(java.lang.String message,
java.lang.Throwable cause,
ScriptSource scriptSource,
java.lang.Integer lineNumber)
|
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 execption occurred. |
java.lang.String |
getMessage()
|
java.lang.String |
getOriginalMessage()
Returns the undecorated message of this exception. |
GradleScriptException |
getReportableException()
Returns the reportable exception for this failure. |
ScriptSource |
getScriptSource()
Returns the source the script where this of this exception occurred. |
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 GradleScriptException(java.lang.String message, java.lang.Throwable cause, ScriptSource scriptSource)
public GradleScriptException(java.lang.String message, java.lang.Throwable cause, ScriptSource scriptSource, java.lang.Integer lineNumber)
Method Detail |
---|
public java.lang.String getOriginalMessage()
Returns the undecorated message of this exception.
public ScriptSource getScriptSource()
Returns the source the script where this of this exception occurred.
public java.lang.String getLocation()
Returns a description of the location of where this execption occurred.
public java.lang.Integer getLineNumber()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public GradleScriptException getReportableException()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |