|
Groovy 2.2.0 | |||||||
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 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 fullfilled that should be fullfiled.
Constructor Summary | |
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 |
Method Summary | |
---|---|
String
|
getBugText()
Returns the bug text to describe this error |
Throwable
|
getCause()
|
String
|
getMessage()
Returns the detail message string of this error. |
void
|
setBugText(String msg)
Sets the bug text to describe this error |
String
|
toString()
Returns a String representation of this class by calling |
Methods inherited from class AssertionError | |
---|---|
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Methods inherited from class Error | |
---|---|
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public GroovyBugError(String message)
message
- the error message text
public GroovyBugError(Exception exception)
exception
- cause of this error
public GroovyBugError(String msg, Exception exception)
msg
- additional information about this errorexception
- cause of this error
Method Detail |
---|
public String getBugText()
public Throwable getCause()
public String getMessage()
public void setBugText(String msg)
public String toString()
getMessage()
.
Copyright © 2003-2013 The Codehaus. All rights reserved.