diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 19:57:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 19:57:18 +0300 |
commit | 5fb195c7fa0af6ecaa9d2d85a68e2de01ba30ff4 (patch) | |
tree | 835ef757eceb65bb6978096e8a5b86cd86a7b641 /libodb-boost/odb/boost/date-time/exceptions.cxx | |
parent | ec090a0330850adfa1b5df4bf1b064f9449678fd (diff) | |
parent | 52426a687a63e9cc900a08fe9a5e1584b3acf5d1 (diff) |
Merge branch 'libodb-boost' into multi-package
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); + } + } + } +} |