X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Ft2n_exception.hxx;h=14243fc832dadde1d818227c8b257406daec3312;hp=a494c8612af742e83ffbb15bf32427f9c284f3b7;hb=7781f1c4d69c5be72d5cc98bf34d0b5ccf1f372e;hpb=6cda58a6dad87ff6efe2277db2155be60edb8d48 diff --git a/src/t2n_exception.hxx b/src/t2n_exception.hxx index a494c86..14243fc 100644 --- a/src/t2n_exception.hxx +++ b/src/t2n_exception.hxx @@ -206,29 +206,6 @@ class t2n_command_error : public t2n_exception { throw *this; } }; -/// illegal libt2n option set -class t2n_parameter_error : public t2n_exception -{ - private: - friend class boost::serialization::access; - template - void serialize(Archive & ar, const unsigned int version); - - public: - t2n_parameter_error(const std::string& _message) - : t2n_exception(_message) - { } - - t2n_parameter_error() - { } - - t2n_exception* clone() const - { return new t2n_parameter_error(*this); } - - void do_throw() - { throw *this; } -}; - /// error serializing or deserializing a libt2n command packet class t2n_serialization_error : public t2n_exception { @@ -254,6 +231,8 @@ class t2n_serialization_error : public t2n_exception /** @brief a runtime error within the remote function. derive your own custom exceptions from this one + + @note you must override the virtual clone method if you do (used by \ref command_server::handle_packet) */ class t2n_runtime_error : public t2n_exception {