X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Ft2n_exception.hxx;h=0440f056a30bcdaadd7819c2b778c9e0fc22954c;hp=14243fc832dadde1d818227c8b257406daec3312;hb=4b995a82e29808cf8125889f83ec70fc7b5c77af;hpb=7781f1c4d69c5be72d5cc98bf34d0b5ccf1f372e diff --git a/src/t2n_exception.hxx b/src/t2n_exception.hxx index 14243fc..0440f05 100644 --- a/src/t2n_exception.hxx +++ b/src/t2n_exception.hxx @@ -38,7 +38,10 @@ void serialize(Archive & ar, std::exception & g, const unsigned int version) namespace libt2n { -/// a generic exception that can be handeled with libt2n +/** @brief a generic exception that can be handeled with libt2n + @note don't derive the exceptions your application generates directly from this one + but use libt2n::t2n_runtime_error for this +*/ class t2n_exception : public std::exception { private: @@ -232,7 +235,7 @@ 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) + @note you must override the virtual clone method if you do so (used by libt2n::command_server::handle()) */ class t2n_runtime_error : public t2n_exception { @@ -258,4 +261,6 @@ class t2n_runtime_error : public t2n_exception } // namespace libt2n +#include "t2n_exception.tcc" + #endif