1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/optional/exceptions.hpp
bolero-MURAKAMI 6a78f64feb fix optional
2013-03-31 10:09:02 +09:00

25 lines
546 B
C++

#ifndef SPROUT_OPTIONAL_EXCEPTIONS_HPP
#define SPROUT_OPTIONAL_EXCEPTIONS_HPP
#include <string>
#include <stdexcept>
#include <sprout/config.hpp>
namespace sprout {
//
// bad_optional_access
//
class bad_optional_access
: public std::logic_error
{
public:
explicit bad_optional_access(std::string const& what_arg)
: std::logic_error(what_arg)
{}
explicit bad_optional_access(char const* what_arg)
: std::logic_error(what_arg)
{}
};
} // namespace sprout
#endif // SPROUT_OPTIONAL_EXCEPTIONS_HPP