| |
|
| java.lang.Object java.lang.Throwable java.lang.Error java.lang.AssertionError org.codehaus.groovy.GroovyBugError
GroovyBugError | public class GroovyBugError extends AssertionError (Code) | | 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.
author: Jochen Theodorou |
GroovyBugError | public GroovyBugError(String message)(Code) | | constructs a bug error using the given text
Parameters: message - the error message text |
GroovyBugError | public GroovyBugError(Exception exception)(Code) | | Constructs a bug error using the given exception
Parameters: exception - cause of this error |
GroovyBugError | public GroovyBugError(String msg, Exception exception)(Code) | | Constructs a bug error using the given exception and
a text with additional information about the cause
Parameters: msg - additional information about this error Parameters: exception - cause of this error |
getBugText | public String getBugText()(Code) | | Returns the bug text to describe this error
|
getMessage | public String getMessage()(Code) | | Returns the detail message string of this error. The message
will consist of the bug text prefixed by "BUG! " if there this
isntance was created using a message. If this error was
constructed without using a bug text the message of the cause
is used prefixed by "BUG! UNCAUGHT EXCEPTION: "
the detail message string of this error. |
setBugText | public void setBugText(String msg)(Code) | | Sets the bug text to describe this error
|
|
|
|