Result.error

auto error()()

Returns the error payload.

Calling error() while the success alternative is active is a programming error and terminates the process (see the module documentation).

Returns

A copy of the error payload, retaining transitive qualifiers.

Throws

Any exception thrown by the payload's copy operation.
auto error()() const

Ditto.