public class GroovyBugError extends AssertionError
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 fulfilled that should be fulfilled.
| Constructor and description | 
|---|
| GroovyBugError(String message)constructs a bug error using the given text | 
| GroovyBugError(Exception exception)Constructs a bug error using the given exception | 
| GroovyBugError(String msg, Exception exception)Constructs a bug error using the given exception and a text with additional information about the cause | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | public String | getBugText()Returns the bug text to describe this error | 
|  | public Throwable | getCause() | 
|  | public String | getMessage()Returns the detail message string of this error. | 
|  | public void | setBugText(String msg)Sets the bug text to describe this error | 
|  | public String | toString()Returns a String representation of this class by calling getMessage(). | 
| Methods inherited from class | Name | 
|---|---|
| class AssertionError | addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait | 
constructs a bug error using the given text
message -  the error message textConstructs a bug error using the given exception
exception -  cause of this errorReturns the bug text to describe this error
Returns the detail message string of this error. The message will consist of the bug text prefixed by "BUG! " if this instance 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: "
Sets the bug text to describe this error
 Returns a String representation of this class by calling getMessage().
      
Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.