📄 configurationexception.java
字号:
/*
* 04/04/2002 - 23:12:27
*
* $RCSfile: ConfigurationException.java,v $ - JDBF Object Relational mapping system
* Copyright (C) 2002 JDBF Development Team
*
* http://jdbf.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2
* 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* $Id: ConfigurationException.java,v 1.4 2004/05/20 22:36:38 gmartone Exp $
*/
package org.jdbf.engine.configuration;
import org.jdbf.engine.JDBFException;
import org.jdbf.castor.Messages;
/**
* <code>ConfigurationException</code> handles exception that occur
* during parsing configuration process.<br>
*
* @author Giovanni Martone<br>
* @version $Revision: 1.4 $<br>
* last changed by $Author: gmartone $
*
*/
public class ConfigurationException extends JDBFException
{
/**
* Nested Exception
*/
private Exception except;
/**
* Creates exception with message
*
* @param message
*/
public ConfigurationException (String message){
super(Messages.message(message));
}
/**
* Creates exception with message and Integer parameter
*
* @param message
* @param type
*/
public ConfigurationException (String message, Integer type){
super(Messages.format(message, type));
}
/**
* Creates exception with message and int param
*
* @param message
* @param type
*/
public ConfigurationException (String message, int type){
this(message, new Integer(type));
}
/**
* Creates exception with message and String parameter
*
* @param message
* @param type
*/
public ConfigurationException (String message, String type){
super(Messages.format(message, type));
}
/**
* Creates exception with message and two String parameters
*
* Message is parsed with two parameter to create error message
*
* @param message
* @param type1
* @param type2
*/
public ConfigurationException (String message, String type1, String type2){
super(Messages.format(message, type1, type2));
}
/**
* Creates exception with a nested exception
*
* @param except
*/
public ConfigurationException(Exception except){
super(Messages.format("config.nested", except.toString()));
this.except = except;
}
/**
* Return nested exception
*
* @return Exception
*
*/
public Exception getException() {
return except;
}
}
/*
* $Log: ConfigurationException.java,v $
* Revision 1.4 2004/05/20 22:36:38 gmartone
* Changed for task 99073 (Coverage Javadocs)
*
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -