X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Ft2n_exception.hxx;h=c81ba02199e994389c8d2a13871cf475e8e923fd;hp=9d789b5cfe67ed45c76dc1ac2134155bbb798935;hb=7087e18783f91d2b889e880462d1d1da24831c28;hpb=cc68aabb16ec32278df8b071c4c9efec7e9f0dce diff --git a/src/t2n_exception.hxx b/src/t2n_exception.hxx index 9d789b5..c81ba02 100644 --- a/src/t2n_exception.hxx +++ b/src/t2n_exception.hxx @@ -25,10 +25,10 @@ #include #include -// serialization for std::exception namespace boost { namespace serialization { +// make std::exception serializable template void serialize(Archive & ar, std::exception & g, const unsigned int version) { @@ -39,7 +39,6 @@ void serialize(Archive & ar, std::exception & g, const unsigned int version) namespace libt2n { - /// a generic exception that can be handeled with libt2n class t2n_exception : public std::exception { @@ -73,7 +72,6 @@ class t2n_exception : public std::exception virtual void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_exception) /// a (unspecified) problem with libt2n communication class t2n_communication_error : public t2n_exception @@ -100,7 +98,6 @@ class t2n_communication_error : public t2n_exception void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_communication_error) /// can't connect to libt2n server class t2n_connect_error : public t2n_communication_error @@ -127,7 +124,6 @@ class t2n_connect_error : public t2n_communication_error void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_connect_error) /// error establishing a socket on the server (only thrown on the server-side) class t2n_server_error : public t2n_communication_error @@ -154,7 +150,6 @@ class t2n_server_error : public t2n_communication_error void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_server_error) /// error transmitting or receiving libt2n messages class t2n_transfer_error : public t2n_communication_error @@ -181,7 +176,6 @@ class t2n_transfer_error : public t2n_communication_error void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_transfer_error) /// tried to talk to an incompatible libt2n version class t2n_version_mismatch : public t2n_communication_error @@ -208,7 +202,6 @@ class t2n_version_mismatch : public t2n_communication_error void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_version_mismatch) /// illegal libt2n command received class t2n_command_error : public t2n_exception @@ -235,7 +228,6 @@ class t2n_command_error : public t2n_exception void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_command_error) /// error serializing or deserializing a libt2n command packet class t2n_serialization_error : public t2n_exception @@ -262,7 +254,6 @@ class t2n_serialization_error : public t2n_exception void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_serialization_error) /** @brief a runtime error within the remote function. derive your own custom exceptions from this one @@ -291,8 +282,7 @@ class t2n_runtime_error : public t2n_exception void do_throw() { throw *this; } }; -BOOST_CLASS_EXPORT(t2n_runtime_error) -} +} // namespace libt2n #endif