dmd.canthrow
Perform checks for nothrow.
Specification: Nothrow Functions
License
Source: canthrow.d
Documentation: https://dlang.org/phobos/dmd_canthrow.html
-
Declaration
boolcanThrow(Expressione, FuncDeclarationfunc, boolmustNotThrow);Returns
trueif the expression may throw exceptions. If 'mustNotThrow' istrue, generate an error if it throws