Result.makeError

Creates an error value.

struct Result(T)
@nogc static @trusted nothrow
typeof(this)
makeError
(
string message
)

Parameters

message string

An UTF-8 encoded error message.

Return Value

Type: typeof(this)

A new result.

Meta