Type Alias: AnyLinePayError
ts
type AnyLinePayError =
| LinePayValidationError
| LinePayApiError
| LinePayHttpError
| LinePayNetworkError
| LinePayTimeoutError
| LinePayAbortError
| LinePayMiddlewareError;Defined in: src/errors/index.ts:619
An error of this library, as one of its classes. code tells them apart, so that a switch on it narrows the error to its class (and to the outcome it can have), and the compiler can check that every class is handled.