跳到內容

Interface: LinePayErrorJSON ​

Defined in: src/errors/index.ts:144

The safe view of an error that toJSON() returns and that console.log and util.inspect print: no response body, no context, no headers or signatures, and the cause as its message alone. A key that has no value is left out.

Properties ​

cause? ​

ts
readonly cause?: string;

Defined in: src/errors/index.ts:160

The message of the cause, with the paths of any URLs in it removed.


code ​

ts
readonly code: LinePayErrorCode;

Defined in: src/errors/index.ts:146


message ​

ts
readonly message: string;

Defined in: src/errors/index.ts:147


meta? ​

ts
readonly meta?: object;

Defined in: src/errors/index.ts:151

startedAt is an ISO 8601 string.

attempts ​

ts
readonly attempts: number;

durationMs ​

ts
readonly durationMs: number;

httpStatus? ​

ts
readonly httpStatus?: number;

operation ​

ts
readonly operation: 
  | "request"
  | "confirm"
  | "capture"
  | "void"
  | "refund"
  | "paymentDetails"
  | "checkPaymentStatus"
  | "checkRegKey"
  | "payPreapproved"
  | "expireRegKey";

startedAt ​

ts
readonly startedAt: string;

name ​

ts
readonly name: string;

Defined in: src/errors/index.ts:145


operation? ​

ts
readonly operation?: 
  | "request"
  | "confirm"
  | "capture"
  | "void"
  | "refund"
  | "paymentDetails"
  | "checkPaymentStatus"
  | "checkRegKey"
  | "payPreapproved"
  | "expireRegKey";

Defined in: src/errors/index.ts:149


outcome ​

ts
readonly outcome: Outcome;

Defined in: src/errors/index.ts:148


reconcileConclusion? ​

ts
readonly reconcileConclusion?: ReconcileConclusion;

Defined in: src/errors/index.ts:158

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