Unexpected

An exception that represents an error value.

This is used by Throw hook when undefined value or error is accessed on Expected

version(D_Exceptions)
class Unexpected : Exception(
T
) {
ET error;
}

Constructors

this
this(auto ref T value, string file = __FILE__, size_t line = __LINE__)

Constructs an Unexpected exception from an error value.

Meta