All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.geronimo.kernel.config.NoSuchConfigException Maven / Gradle / Ivy

The newest version!
/**
 *  Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  See the NOTICE file distributed with
 *  this work for additional information regarding copyright ownership.
 *  The ASF licenses this file to You under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package org.apache.geronimo.kernel.config;

import org.apache.geronimo.kernel.repository.Artifact;

/**
 * Exception indicating the requestion Configuration could not be located.
 *
 * @version $Rev: 905918 $ $Date: 2010-02-03 15:26:50 +0800 (Wed, 03 Feb 2010) $
 */
public class NoSuchConfigException extends Exception {
    private final Artifact configId;

    public NoSuchConfigException(Artifact configId) {
        super(configId.toString());
        this.configId = configId;
    }

    public NoSuchConfigException(Artifact configId, String message) {
        super(message);
        this.configId = configId;
    }

    public Artifact getConfigId() {
        return configId;
    }

    @Override
    public String toString() {
        return super.toString() + " (configId: " + configId + ")";
    }

    @Override
    public String getMessage() {
        return super.getMessage() + " (configId: " + configId + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy