DecimalControl.enableExceptions

Enables specified exceptions. Multiple exceptions may be ORed together.

DecimalControl.enableExceptions(ExceptionFlags.overflow);
try
{
    auto d = decimal64.max * 2;
}
catch (OverflowException)
{
    writeln("Overflow error")
}
struct DecimalControl
@nogc @safe nothrow static
void
enableExceptions

Meta