UNPKG

chrome-remote-interface

Version:
17 lines (14 loc) 400 B
'use strict'; class ProtocolError extends Error { constructor(request, response) { let {message} = response; if (response.data) { message += ` (${response.data})`; } super(message); // attach the original response as well this.request = request; this.response = response; } } module.exports.ProtocolError = ProtocolError;