/**
 * Class to represent errors from Client.
 */ export class ClientError extends Error { /**
     * The route the request was made to.
     */ public route : string ; /**
     * The HTTP status code returned.
     */ public httpStatus : number ; /**
     * The code return in the payload.
     */ public code ? : string ; param message param route param httpStatus param code constructor ( message , route , httpStatus , code ? ) { super ( message ) ; this . route = route ; this . httpStatus = httpStatus ; this . code = code ; } }