User-defined type guard for APIError and its subclasses.
The value to test.
true if error is a APIError instance.
true
error
User-defined type guard for APIError and its subclasses.