import HttpStatus from '@xpring-eng/http-status' ; /**
 * Custom Errors for PayID.
 */ export default abstract class PayIDError extends Error { public readonly httpStatusCode : HttpStatus ; public abstract readonly kind : string ; param message param status public constructor ( message , status ) { super ( message ) ; this . name = this . constructor . name ; this . httpStatusCode = status ; } returns public toString ( ) { return `${ this . name }[${ this . kind }]: ${ this . message }` ; } }