All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goal.tools.errorhandling.exceptions.GOALBug Maven / Gradle / Ivy

The newest version!
/**
 * The GOAL Runtime Environment. Copyright (C) 2015 Koen Hindriks.
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see .
 */
package goal.tools.errorhandling.exceptions;

/**
 * Represents errors that indicate that there is a bug in the GOAL code
 * somewhere.
*/ public class GOALBug extends RuntimeException { /** auto-generated serial version UID */ private static final long serialVersionUID = 2090964219474322362L; /** * Creates a new {@link GOALBug}. * * @param message * A description of what went wrong. */ public GOALBug(String message) { super(message); } /** * Creates a new {@link GOALBug} caused by some inner exception. The message * will be '[BUG]: <CauseClassName>'. * * @param cause * The cause of the bug. */ public GOALBug(Throwable cause) { super("[BUG]: " + cause.getClass().getCanonicalName(), cause); } /** * Creates a new {@link GOALBug} with some cause. * * @param message * A description of what went wrong. * @param cause * The cause of the bug. */ public GOALBug(String message, Throwable cause) { super(message, cause); } @Override public String toString() { return getMessage(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy