Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 | Name and description |
---|---|
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 getMessage() . |
Methods inherited from class | Name |
---|---|
class AssertionError |
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
class Error |
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
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 there 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-2015 The Apache Software Foundation. All rights reserved.