| 245 | } |
| 246 | |
| 247 | void NO_RETURN exception_factory::rethrow( const exception& e )const |
| 248 | { |
| 249 | auto itr = _registered_exceptions.find( e.code() ); |
| 250 | if( itr != _registered_exceptions.end() ) |
| 251 | itr->second->rethrow( e ); |
| 252 | throw e; |
| 253 | } |
| 254 | /** |
| 255 | * Rethrows the exception restoring the proper type based upon |
| 256 | * the error code. This is used to propagate exception types |
no test coverage detected