UNPKG

oklink-api

Version:

This is a non-official JS SDK API for calling OKLink's API product.

12 lines (10 loc) 248 B
export class ApiError extends Error { code: string msg: string constructor(code: string, msg: string) { super(`${code}: ${msg}`) this.code = code this.msg = msg this.name = 'ApiError' } }