diff options
Diffstat (limited to 'libodb-boost/odb/boost/date-time/exceptions.cxx')
-rw-r--r-- | libodb-boost/odb/boost/date-time/exceptions.cxx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libodb-boost/odb/boost/date-time/exceptions.cxx b/libodb-boost/odb/boost/date-time/exceptions.cxx new file mode 100644 index 0000000..3ba8132 --- /dev/null +++ b/libodb-boost/odb/boost/date-time/exceptions.cxx @@ -0,0 +1,37 @@ +// file : odb/boost/date-time/exceptions.cxx +// license : GNU GPL v2; see accompanying LICENSE file + +#include <odb/boost/date-time/exceptions.hxx> + +namespace odb +{ + namespace boost + { + namespace date_time + { + const char* special_value:: + what () const ODB_NOTHROW_NOEXCEPT + { + return "unrepresentable date/time special value"; + } + + special_value* special_value:: + clone () const + { + return new special_value (*this); + } + + const char* value_out_of_range:: + what () const ODB_NOTHROW_NOEXCEPT + { + return "date/time value out of range"; + } + + value_out_of_range* value_out_of_range:: + clone () const + { + return new value_out_of_range (*this); + } + } + } +} |