net.sourceforge.jbizmo.commons.search.exception.GeneralSearchException Maven / Gradle / Ivy
The newest version!
/*
* This file is part of JBizMo, a set of tools, libraries and plug-ins
* for modeling and creating Java-based enterprise applications.
* For more information visit:
*
* http://sourceforge.net/projects/jbizmo/
*
* This software 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 2 of the License, or
* (at your option) any later version.
*
* This software 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 software; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package net.sourceforge.jbizmo.commons.search.exception;
import net.sourceforge.jbizmo.commons.exception.ExceptionHelper;
/**
*
* General exception that is thrown if a search operation has failed
*
*
* Copyright 2010 (C) by Martin Ganserer
*
* @author Martin Ganserer
* @version 1.0.0
*/
public class GeneralSearchException extends RuntimeException {
private static final long serialVersionUID = 445077163240217480L;
/**
* Constructor
*/
public GeneralSearchException() {
}
/**
* Constructor
* @param message the error message
*/
public GeneralSearchException(String message) {
super(message);
}
/**
* Constructor
* @param cause the cause of the exception
*/
public GeneralSearchException(Throwable cause) {
super(cause);
}
/**
* Constructor
* @param message the error message
* @param cause the cause of the exception
*/
public GeneralSearchException(String message, Throwable cause) {
super(message, cause);
}
/**
* Constructor that initializes the exception with the message of the root cause
* @param cause the cause of the exception
* @param extractRootCauseMessage is only necessary to have a different method signature
*/
@SuppressWarnings("unused")
public GeneralSearchException(Throwable cause, boolean extractRootCauseMessage) {
super(ExceptionHelper.getRootCause(cause).getMessage());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy