SCOPE_FAIL

Capture code to run if the scope exits with an exception.

Synopsis

Declared in <folly/ScopeGuard.h>

#define SCOPE_FAIL

Description

Like SCOPE_EXIT, but only executes the code if the scope exited due to an exception.