Package org.codehaus.groovy
Class GroovyBugError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.codehaus.groovy.GroovyBugError
- All Implemented Interfaces:
- Serializable
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.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionGroovyBugError(Exception exception) Constructs a bug error using the given exceptionGroovyBugError(String message) constructs a bug error using the given textGroovyBugError(String msg, Exception exception) Constructs a bug error using the given exception and a text with additional information about the cause
- 
Method SummaryModifier and TypeMethodDescriptionReturns the bug text to describe this errorgetCause()Returns the detail message string of this error.voidsetBugText(String msg) Sets the bug text to describe this errortoString()Returns a String representation of this class by callinggetMessage().Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
- 
Constructor Details- 
GroovyBugErrorconstructs a bug error using the given text- Parameters:
- message- the error message text
 
- 
GroovyBugErrorConstructs a bug error using the given exception- Parameters:
- exception- cause of this error
 
- 
GroovyBugErrorConstructs a bug error using the given exception and a text with additional information about the cause- Parameters:
- msg- additional information about this error
- exception- cause of this error
 
 
- 
- 
Method Details- 
toStringReturns a String representation of this class by callinggetMessage().
- 
getMessageReturns 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: "- Overrides:
- getMessagein class- Throwable
- Returns:
- the detail message string of this error.
 
- 
getCause
- 
getBugTextReturns the bug text to describe this error
- 
setBugTextSets the bug text to describe this error
 
-