跳到內容

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.

Released under the MIT License. An independent library, not made or endorsed by LINE Pay.