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

com.hp.autonomy.frontend.configuration.ConfigException Maven / Gradle / Ivy

/*
 * Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.frontend.configuration;

import lombok.Getter;

/**
 * Exception thrown when errors are found in configuration files and objects.
 */
public class ConfigException extends Exception {

    private static final long serialVersionUID = -6631508891944406923L;

    @Getter
    private final String section;

    public ConfigException(final String section, final String message) {
        super(section + ": " + message);

        this.section = section;
    }

    public ConfigException(final String section, final Throwable cause) {
        super(section + ": " + cause.getMessage(), cause);

        this.section = section;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy