diff --git a/include/fc/exception/exception.hpp b/include/fc/exception/exception.hpp index 2d2cfc6..c83b9d0 100644 --- a/include/fc/exception/exception.hpp +++ b/include/fc/exception/exception.hpp @@ -29,7 +29,8 @@ namespace fc assert_exception_code = 10, eof_exception_code = 11, std_exception_code = 13, - invalid_operation_exception_code = 14 + invalid_operation_exception_code = 14, + unknown_host_exception_code = 15 }; /** @@ -253,6 +254,10 @@ namespace fc FC_DECLARE_EXCEPTION( invalid_operation_exception, invalid_operation_exception_code, "Invalid Operation" ); + /** @brief if an host name can not be resolved this may be thrown */ + FC_DECLARE_EXCEPTION( unknown_host_exception, + unknown_host_exception_code, + "Unknown Host" ); /** * @brief used to report a canceled Operation diff --git a/src/exception.cpp b/src/exception.cpp index 25bd2a6..670805e 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -11,6 +11,7 @@ namespace fc (parse_error_exception) (invalid_arg_exception) (invalid_operation_exception) + (unknown_host_exception) (key_not_found_exception) (bad_cast_exception) (out_of_range_exception)