E0256: catch variable can only be typed as '*', 'any', or 'unknown'
In TypeScript, a catch variable can be annotated with either no type, *,
any, or unknown. It is an error to annotate a catch variable with a
specific error type:
To fix this error, annotate the catch variable with the unknown type, then
use instanceof to check the error's type at run time: