Type guard for a structured ArkError, optionally narrowing to a specific
name. Prefer it over comparing err.name literals.
name accepts only cataloged ArkErrorName values; to branch on a name the
catalog does not cover, either add it there or compare err.name after guarding
with the one-argument form.
Type guard for a structured ArkError, optionally narrowing to a specific
name. Prefer it over comparingerr.nameliterals.nameaccepts only cataloged ArkErrorName values; to branch on a name the catalog does not cover, either add it there or compareerr.nameafter guarding with the one-argument form.