enforceValidHandle

fnvoid enforceValidHandle(T)(T handle, string msg = "Invalid or null handle")

Enforces that a handle is not null.

Parameters

handleThe handle to check
msgCustom error message

Throws

InvalidHandleException if handle is null