add unknown host exception
This commit is contained in:
parent
88e41b76e3
commit
9b3b7993ee
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue