    001    package calhoun.util;
    002
    003    /** Exception type for system configuration exceptions.  It is unchecked to simplify error handling in other Java code.
    004     * It is a wrapper for problems that generally will not be handled in code.  Files not found, setup missing, etc.
    005     * You should assume error messages will be viewed by the user.
    006     *
    007     * This should only be thrown for errors which should be fixable by the user without examining or changing code.
    008     */
    009    public class ConfigException extends RuntimeException{
    010
    011            private static final long serialVersionUID = -5371694423739150838L;
    012
    013            public ConfigException(String arg0) {
    014                    super(arg0);
    015            }
    016
    017            public ConfigException(String arg0, Throwable arg1) {
    018                    //super(arg0, arg1);
    019                    super(arg0);
    020                    if(arg1.getCause() != null)
    021                            initCause(arg1.getCause());
    022                    else
    023                            initCause(arg1);
    024            }
    025
    026            public ConfigException(Throwable arg) {
    027                    //super(arg0);
    028                    if(arg.getCause() != null)
    029                            initCause(arg.getCause());
    030                    else
    031                            initCause(arg);
    032            }
    033    }