Typed error hierarchy for PiDraw.
All PiDraw errors extend PiDrawError, so a consumer can catch every library error at once with catch (e) { if (e instanceof PiDrawError) ... }, or discriminate a specific kind with instanceof ParseError. The names follow the ones of PiMath.
catch (e) { if (e instanceof PiDrawError) ... }
instanceof ParseError
Optional
Static
Indicates whether the argument provided is a built-in Error instance or not.
Typed error hierarchy for PiDraw.
All PiDraw errors extend PiDrawError, so a consumer can catch every library error at once with
catch (e) { if (e instanceof PiDrawError) ... }, or discriminate a specific kind withinstanceof ParseError. The names follow the ones of PiMath.