The OpenD Programming Language

err

Wrapper to denote an error value type.

The wrapper is autostripped by none.

err
(
T
)
()

Examples

@reflectErr static struct E {}

static assert(is(Err!string == Err!string));
static assert(is(Err!(Err!string) == Err!string));
static assert(is(Err!E == E));
static assert(is(Err!Exception == Exception));

static assert(is(typeof("str".err) == Err!string));
static assert(is(typeof(E().err) == E));
static assert(is(typeof(new Exception("str").err) == Exception));

See Also

Meta