DUDS
Distributed Update of Data from Something
TimeErrors.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2017 Jeff Jackowski
9  */
10 #include <duds/general/Errors.hpp>
11 
12 namespace duds { namespace time {
13 
17 struct TimeError : virtual std::exception, virtual boost::exception { };
18 
24 /*
25 / **
26  * The specified year is outside the allowable range.
27  * /
28 struct YearOutOfRangeError : TimeOutOfRangeError { };
29 
30 / **
31  * The specified month is outside the allowable range.
32  * /
33 struct MonthOutOfRangeError : TimeOutOfRangeError { };
34 */
35 
36 namespace planetary {
37 
42 
47 
51 struct ZoneinfoError : TimeError { };
52 
58 
65 
70 /*
71 / **
72  * The year value specified as part of something that caused a TimeError
73  * to be thrown.
74  * /
75 typedef boost::error_info<struct Info_year, int> YearInError;
76 
77 / **
78  * The month value specified as part of something that caused a TimeError
79  * to be thrown.
80  * /
81 typedef boost::error_info<struct Info_year, int> MonthInError;
82 
83 / **
84  * The leap secons value specified as part of something that caused a
85  * TimeError to be thrown.
86  * /
87 typedef boost::error_info<struct Info_year, int> LeapInError;
88 */
89 } } }
An I/O error occured while reading a zoneinfo database file.
Definition: TimeErrors.hpp:69
A base class for time related range errors.
Definition: TimeErrors.hpp:23
The zoneinfo file claimed to have more leap second records than were read from the file...
Definition: TimeErrors.hpp:64
The base type of all time related errors.
Definition: TimeErrors.hpp:17
More than one leap second was specified for the same time in a zoneinfo database file.
Definition: TimeErrors.hpp:57
An I/O error involving a file.
Definition: Errors.hpp:111
More than one leap second was specified for the same time.
Definition: TimeErrors.hpp:46
An error involving reading a zoneinfo database file.
Definition: TimeErrors.hpp:51
The specified number of leap seconds is outside the allowable range.
Definition: TimeErrors.hpp:41
General errors.