<commit_before>/**
 * @file Exceptions.h
 *
 * Exception class definitions.
 *
 * This file is part of the Aquila DSP library.
 * Aquila is free software, licensed under the MIT/X11 License. A copy of
 * the license is provided with the library in the LICENSE file.
 *
 * @package Aquila
 * @version 3.0.0-dev
 * @author <NAME>
 * @date 2007-2013
 * @license http://www.opensource.org/licenses/mit-license.php MIT
 * @since 2.0.0
 */

#ifndef EXCEPTIONS_H
#define EXCEPTIONS_H

#include "global.h"
#include <stdexcept>
#include <string>

namespace Aquila
{
    /**
     * Base exception class of the library.
     *
     * Class clients should rather catch exceptions of specific types, such as
     * Aquila::FormatException, however it is allowed to catch Aquila::Exception
     * as the last resort (but catch(...)).
     */
    class AQUILA_EXPORT Exception : public std::runtime_error
	{
	public:
	    /**
         * Creates an exception object.
	     *
         * @param what exception message
	     */
		Exception(const std::string& what):
			runtime_error(what)
		{
		}
	};

	/**
     * Data format-related exception.
	 */
    class AQUILA_EXPORT FormatException : public Exception
	{
	public:
        /**
         * Creates a data format exception object.
         *
         * @param what exception message
         */
	    FormatException(const std::string& what):
			Exception(what)
		{
		}
	};

    /**
     * Runtime configuration exception.
     */
    class AQUILA_EXPORT ConfigurationException : public Exception
    {
    public:
        /**
         * Creates a configuration exception object.
         *<commit_msg>Whitespace/indentation fixes in Exceptions.h<commit_after>/**
 * @file Exceptions.h
 *
 * Exception class definitions.
 *
 * This file is part of the Aquila DSP library.
 * Aquila is free software, licensed under the MIT/X11 License. A copy of
 * the license is provided with the library in the LICENSE file.
 *
 * @package Aquila
 * @version 3.0.0-dev
 * @author <NAME>
 * @date 2007-2013
 * @license http://www.opensource.org/licenses/mit-license.php MIT
 * @since 2.0.0
 */

#ifndef EXCEPTIONS_H
#define EXCEPTIONS_H

#include "global.h"
#include <stdexcept>
#include <string>

namespace Aquila
{
    /**
     * Base exception class of the library.
     *
     * Class clients should rather catch exceptions of specific types, such as
     * Aquila::FormatException, however it is allowed to catch Aquila::Exception
     * as the last resort (but catch(...)).
     */
    class AQUILA_EXPORT Exception : public std::runtime_error
    {
    public:
        /**
         * Creates an exception object.
         *
         * @param what exception message
         */
        Exception(const std::string& what):
            runtime_error(what)
        {
        }
    };

    /**
     * Data format-related exception.
     */
    class AQUILA_EXPORT FormatException : public Exception
    {
    public:
        /**
         * Creates a data format exception object.
         *
         * @param what exception message
         */
        FormatException(const std::string& what):
            Exception(what)
        {
        }
    };

    /**
     * Runtime configuration exception.
     */
    class AQUILA_EXPORT ConfigurationException : public Exception
    {
    public:
        /**
         * Creates a configuration exception object.
         *
{'fraction_non_alphanumeric': 0.09926144756277695, 'fraction_numerical': 0.009453471196454948, 'mean_word_length': 2.2557692307692307, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '189795', 'n_tokens_mistral': 998, 'n_tokens_neox': 948, 'n_words': 301}