UNPKG

@square/web-payments-sdk-types

Version:

Types for Square's Web Payments SDK

20 lines (19 loc) 473 B
import { SqError } from './types'; /** * A generic error to handle internal error conditions unrelated to the state * of the application that is integrating the Web Payments SDK. * @example * ``` * try { * await ach.tokenize(); * } * catch (e) { * if (e instanceof UnexpectedError) { * alert(`The SDK had an unknown error ${e.message}`); * } * } * ``` */ export declare class UnexpectedError extends SqError { constructor(actionText: string); }