W3cubDocs

/D

dmd.canthrow

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source
canthrow.d
Documentation
https://dlang.org/phobos/dmd_canthrow.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/canthrow.d
bool canThrow(Expression e, FuncDeclaration func, bool mustNotThrow);

Returns true if the expression may throw exceptions. If 'mustNotThrow' is true, generate an error if it throws

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_canthrow.html