UNPKG

@foxglove/xmlrpc

Version:

TypeScript library implementing an XMLRPC client and server with pluggable server backend

14 lines (11 loc) 352 B
export class XmlRpcFault extends Error { code?: number; faultCode?: number; faultString?: string; constructor(faultString?: string, faultCode?: number) { const msg = `XML-RPC fault${faultString != undefined ? ": " + faultString : ""}`; super(msg); this.code = this.faultCode = faultCode; this.faultString = faultString; } }