Create and return an IDbgProvider which will throw an exception with the
log the message when the level is less than the maximum defined. Which
defaults to DbgLevel.Error, so all Critical, Terminal and Error.
// Add the throw provider to the default $Dbg instance, this will // cause any message which is received up to the maximum error level // to ca $Dbg.addProvider(createThrowProvider());
// throws an exception with "Error Message" $dbgError("Error Message");
Create and return an IDbgProvider which will throw an exception with the log the message when the level is less than the maximum defined. Which defaults to DbgLevel.Error, so all Critical, Terminal and Error.
Example