Define common supertype for runtime errors #7000
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-as-intended
Closed as the reported issue is expected behavior
type-enhancement
A request for a change that isn't a bug
You can roughly bucket errors into three groups:
Occasionally, I find myself wanting to catch all possible runtime errors. (For example, so I can clean up or log on failure.) In those cases, it still feels weird to catch programmatic errors like ArgumentError.
Have you considered having something like:
class Error {} // base class for everything
class Exception extends Error {} // just runtime errors
The text was updated successfully, but these errors were encountered: