Skip to main content
Deno 2 is finally here 🎉️
Learn more

The suppress function executes the nested code and avoids some of the thrown errors. You can specify one or more error-exceptions that will be suppressed. If no errors happened during the execution, suppress will return SuccessResult. Otherwise suppress will return FailureResult.