ConfigurationException.java :  » Inversion-of-Control » carbon » org » sape » carbon » core » config » Java Open Source

Java Open Source » Inversion of Control » carbon 
carbon » org » sape » carbon » core » config » ConfigurationException.java
/*
 * The contents of this file are subject to the Sapient Public License
 * Version 1.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 * http://carbon.sf.net/License.html.
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Original Code is The Carbon Component Framework.
 *
 * The Initial Developer of the Original Code is Sapient Corporation
 *
 * Copyright (C) 2003 Sapient Corporation. All Rights Reserved.
 */

package org.sape.carbon.core.config;

import org.sape.carbon.core.exception.BaseException;
import org.sape.carbon.core.util.classify.SeverityEnum;

/**
 * <P>This abstract exception is the base exception for exceptions that occur
 * within the Carbon Configuration Service.
 * </P>
 *
 * Copyright 2002 Sapient
 * @since carbon 1.0
 * @author Mike Redd, December 2001
 * @version $Revision: 1.17 $($Author: dvoet $ / $Date: 2003/05/05 21:21:15 $)
 */
public abstract class ConfigurationException extends BaseException {

    /**
     * Creates a ConfigurationException.
     *
     * @param sourceClass the source class of where this exception was
     *   thrown
     * @param message a message describing the reason that configuration failed
     */
    public ConfigurationException(Class sourceClass, String message) {
        super(sourceClass, message);
    }

    /**
     * Creates a ConfigurationException
     *
     * @param sourceClass the source class of where this exception was
     *   thrown
     * @param message a message describing the reason that configuration failed
     * @param cause the exception that caused this failure
     */
    public ConfigurationException(
        Class sourceClass,
        String message,
        Throwable cause) {
        super(sourceClass, message, cause);
    }

    /**
     * @see BaseException#getSeverity
     */
    public SeverityEnum getSeverity() {
        return SeverityEnum.TRACE;
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.