aboutsummaryrefslogtreecommitdiff
path: root/odb/boost/date-time/exceptions.cxx
blob: 25a2976d7788a0517833fba880e5bb610dcd02df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// file      : odb/boost/date-time/exceptions.cxx
// copyright : Copyright (c) 2005-2018 Code Synthesis Tools CC
// 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);
      }
    }
  }
}