dmd.canthrow
Perform checks for nothrow
.
Specification: Nothrow Functions
License
Source: canthrow.d
Documentation: https://dlang.org/phobos/dmd_canthrow.html
-
Declaration
enum
CT
: BE; -
Declaration
CT
canThrow
(Expressione
, FuncDeclarationfunc
, ErrorSinkeSink
);If
is noteSink
null
, generate an error if
throwse
Parameters
Expression
e
expression to check for throwing
FuncDeclaration
func
function
ErrorSink
eSink
if !
null
, then send error messages toeSink
Return Value
CT.exception
orCT.error
if the expression may throw exceptions.