Fix 'occurred' typo
[libt2n] / src / t2n_exception.tcc
CommitLineData
19facd85
TJ
1/*
2Copyright (C) 2006 by Intra2net AG - Gerd v. Egidy
3
4The software in this package is distributed under the GNU General
5Public License version 2 (with a special exception described below).
6
7A copy of GNU General Public License (GPL) is included in this distribution,
8in the file COPYING.GPL.
9
10As a special exception, if other files instantiate templates or use macros
11or inline functions from this file, or you compile this file and link it
12with other works to produce a work based on this file, this file
13does not by itself cause the resulting work to be covered
14by the GNU General Public License.
15
16However the source code for this file must still be made available
17in accordance with section (3) of the GNU General Public License.
18
19This exception does not invalidate any other reasons why a work based
20on this file might be covered by the GNU General Public License.
21*/
1758a7fb
RP
22
23#include <boost/archive/binary_oarchive.hpp>
24#include <boost/archive/binary_iarchive.hpp>
25#include <boost/archive/xml_oarchive.hpp>
26#include <boost/archive/xml_iarchive.hpp>
27
28namespace libt2n
29{
30
31template<class Archive>
32void t2n_exception::serialize(Archive & ar, const unsigned int version)
33{
34 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(exception);
35 ar & BOOST_SERIALIZATION_NVP(message);
36}
37
38template<class Archive>
39void t2n_communication_error::serialize(Archive & ar, const unsigned int version)
40{
41 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception);
42}
43
44template<class Archive>
45void t2n_connect_error::serialize(Archive & ar, const unsigned int version)
46{
47 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error);
48}
49
50template<class Archive>
51void t2n_server_error::serialize(Archive & ar, const unsigned int version)
52{
53 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error);
54}
55
56template<class Archive>
57void t2n_transfer_error::serialize(Archive & ar, const unsigned int version)
58{
59 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error);
60}
61
62template<class Archive>
63void t2n_version_mismatch::serialize(Archive & ar, const unsigned int version)
64{
65 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error);
66}
67
68template<class Archive>
69void t2n_command_error::serialize(Archive & ar, const unsigned int version)
70{
71 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception);
72}
73
74template<class Archive>
75void t2n_serialization_error::serialize(Archive & ar, const unsigned int version)
76{
77 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception);
78}
79
80template<class Archive>
81void t2n_runtime_error::serialize(Archive & ar, const unsigned int version)
82{
83 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception);
84}
85
86} // namespace libt2n