Call fn with the wrapped exception (if any), if fn can accept it.
Declared in <folly/ExceptionWrapper.h>
Call fn with the wrapped exception (if any), if fn can accept it.
template<
class Ex = void const,
class Fn>
bool
with_exception(Fn fn);
» more...
template<
class Ex = void const,
class Fn>
bool
with_exception(Fn fn) const;
» more...
true if and only if fn was called.
| Name | Description |
|---|---|
| Ex | Optionally, the type of the exception that fn accepts. |
| Fn | The type of a monomorphic function object. |
| Name | Description |
|---|---|
| fn | A function object to call with the wrapped exception |