import TwilioError from './TwilioError' ; link export default class TwilioApiError extends TwilioError { public readonly code : number ; public readonly message : string ; public readonly moreInfo ? : string ; public readonly status : number ; constructor ( code , message , status , moreInfo ? ) { super ( message ) ; this . code = code ; this . message = message ; this . moreInfo = moreInfo ; this . status = status ; Object . setPrototypeOf ( this , TwilioApiError . prototype ) ; } }