Constructs a failed result holding the given error message.

Synopsis

Declared in <util/result.h>

Result(Error error);

Parameters

Name

Description

error

the error carrier whose message is moved into the result

Created with MrDocs