/* * Exceptions.hpp * * Created on: Nov 23, 2012 * Author: heber */ #ifndef SERIALZABLEPOTENTIALEXCEPTIONS_HPP_ #define SERIALZABLEPOTENTIALEXCEPTIONS_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include /** type for all serializer exceptions on bad streams * */ struct SerializerStreamException : virtual std::exception, virtual boost::exception { }; /** ========================== General error information ================== */ /** Exception information for ParserException: non-present key of an internal map. */ typedef boost::error_info< struct tag_SerializerKey, const std::string > SerializerKey; /** ============================ Specific exceptions ====================== */ /** Exception thrown when the given parameter name/key does not exist */ struct SerializerIllegalKeyException : virtual SerializerStreamException { }; /** Exception thrown when the value to parameter name/key is missing */ struct SerializerMissingValueException : virtual SerializerStreamException { }; #endif /* EXCEPTIONS_HPP_ */