add unknown host exception

This commit is contained in:
HackFisher 2014-06-08 16:53:23 -04:00
parent 88e41b76e3
commit 9b3b7993ee
2 changed files with 7 additions and 1 deletions

View file

@ -29,7 +29,8 @@ namespace fc
assert_exception_code = 10, assert_exception_code = 10,
eof_exception_code = 11, eof_exception_code = 11,
std_exception_code = 13, 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, FC_DECLARE_EXCEPTION( invalid_operation_exception,
invalid_operation_exception_code, invalid_operation_exception_code,
"Invalid Operation" ); "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 * @brief used to report a canceled Operation

View file

@ -11,6 +11,7 @@ namespace fc
(parse_error_exception) (parse_error_exception)
(invalid_arg_exception) (invalid_arg_exception)
(invalid_operation_exception) (invalid_operation_exception)
(unknown_host_exception)
(key_not_found_exception) (key_not_found_exception)
(bad_cast_exception) (bad_cast_exception)
(out_of_range_exception) (out_of_range_exception)