/* * ParameterExceptions.hpp * * Created on: May 9, 2012 * Author: heber */ #ifndef PARAMETEREXCEPTIONS_HPP_ #define PARAMETEREXCEPTIONS_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include class Vector; /** Base type for all exceptions regarding parameters. * */ struct ParameterException : virtual std::exception, virtual boost::exception { }; /** Exception thrown when a value is invalid, unset, ... * */ struct ParameterValueException : virtual ParameterException { }; /** Exception thrown when the validator or its parameters (ranges) are invalid * */ struct ParameterValidatorException : virtual ParameterException { }; /** ========================== General error information ================== */ /** Exception information for name of a parmeter. */ typedef boost::error_info ParameterName; /** Exception information for valid values of a parameter. */ typedef boost::error_info ParameterValidValues; #endif /* PARAMETEREXCEPTIONS_HPP_ */