MCPcopy Create free account
hub / github.com/appium/appium / constructor

Method constructor

packages/base-driver/lib/protocol/errors.ts:383–390  ·  view source on GitHub ↗
(message: string = '', cause?: Error)

Source from the content-addressed store, hash-verified

381
382export class JavaScriptError extends ProtocolError {
383 constructor(message: string = '', cause?: Error) {
384 super(
385 message || 'An error occurred while executing user supplied JavaScript.',
386 JavaScriptError.w3cStatus(),
387 JavaScriptError.error(),
388 cause,
389 );
390 }
391 static w3cStatus() {
392 return HTTPStatusCodes.INTERNAL_SERVER_ERROR;
393 }

Callers

nothing calls this directly

Calls 2

errorMethod · 0.65
w3cStatusMethod · 0.45

Tested by

no test coverage detected