MCPcopy
hub / github.com/appium/appium / constructor

Method constructor

lib/protocol/errors.js:167–174  ·  view source on GitHub ↗
(errorOrMessage)

Source from the content-addressed store, hash-verified

165 return W3C_UNKNOWN_ERROR;
166 }
167 constructor (errorOrMessage) {
168 const origMessage = _.isString((errorOrMessage || {}).message)
169 ? errorOrMessage.message
170 : errorOrMessage;
171 const message = 'An unknown server-side error occurred while processing the command.' +
172 (origMessage ? ` Original error: ${origMessage}` : '');
173 super(message, UnknownError.code(), UnknownError.w3cStatus(), UnknownError.error());
174 }
175}
176
177class UnknownMethodError extends ProtocolError {

Callers

nothing calls this directly

Calls 3

codeMethod · 0.45
w3cStatusMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected