Base class for every error this library throws. Catch this if you want a
single catch block; switch on instanceof (or error.code) when you need
to distinguish cases.
Every concrete subclass sets a stable code you can branch on without
relying on instanceof checks across module boundaries.
Base class for every error this library throws. Catch this if you want a single
catchblock; switch oninstanceof(orerror.code) when you need to distinguish cases.Every concrete subclass sets a stable
codeyou can branch on without relying oninstanceofchecks across module boundaries.