HomeManualTopicsTypesSymbols

std::try

recover an error object

Parameter

body
the statements to execute

Results

None

Description

If the execution of body fails then the error-object is returned. If the execution of body succeeds then std::undefined is returned.

body must not return any results.

Topic

Errors

See also

std::error_check raises an error if any of its arguments is an error object