|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Error java.lang.AssertionError org.codehaus.groovy.GroovyBugError
public class GroovyBugError
This class represents an error that is thrown when a bug is recognized inside the runtime. Basically it is thrown when a constraint is not fullfilled that should be fullfiled.
Constructor Summary | |
---|---|
GroovyBugError(java.lang.Exception exception)
Constructs a bug error using the given exception |
|
GroovyBugError(java.lang.String message)
constructs a bug error using the given text |
|
GroovyBugError(java.lang.String msg,
java.lang.Exception exception)
Constructs a bug error using the given exception and a text with additional information about the cause |
Method Summary | |
---|---|
java.lang.String |
getBugText()
Returns the bug text to describe this error |
java.lang.Throwable |
getCause()
|
java.lang.String |
getMessage()
Returns the detail message string of this error. |
void |
setBugText(java.lang.String msg)
Sets the bug text to describe this error |
java.lang.String |
toString()
Returns a String representation of this class by calling getMessage() . |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GroovyBugError(java.lang.String message)
message
- the error message textpublic GroovyBugError(java.lang.Exception exception)
exception
- cause of this errorpublic GroovyBugError(java.lang.String msg, java.lang.Exception exception)
msg
- additional information about this errorexception
- cause of this errorMethod Detail |
---|
public java.lang.String toString()
getMessage()
.
toString
in class java.lang.Throwable
getMessage()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public java.lang.String getBugText()
public void setBugText(java.lang.String msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |