/******************************************************************************* * Copyright (c) 2011 Arapiki Solutions Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * "Peter Smith <psmith@arapiki.com>" - initial API and * implementation and/or initial documentation *******************************************************************************/ package com.buildml.utils.errors; /** * A Java Error that can be thrown from any part of the code * to indicate that a fatal error occurred. The receiver of the FatalError * must simply catch and display the error. There isn't intended to be any way to * recovery from this type of error. * @author "Peter Smith <psmith@arapiki.com>" */ @SuppressWarnings("serial") public class FatalError extends Error { /** * Create a new FatalError with a string message and an encapsulated * Exception. * @param message A string message to indicate the cause of the failure. * @param e An embedded Exception that caused the failure. */ public FatalError(String message, Throwable e) { super(message, e); } /** * Create a new FatalError with a string message. * @param message A string message to indicate the cause of the failure. */ public FatalError(String message) { super(message); } }