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

Method constructor

packages/base-driver/lib/protocol/errors.ts:49–54  ·  view source on GitHub ↗
(msg: string, w3cStatus: number, w3cErrorSignature: string, cause?: Error)

Source from the content-addressed store, hash-verified

47 protected _stacktrace: string | undefined;
48
49 constructor(msg: string, w3cStatus: number, w3cErrorSignature: string, cause?: Error) {
50 super(msg, cause);
51 this.error = w3cErrorSignature ?? UnknownError.error();
52 this.w3cStatus = w3cStatus ?? UnknownError.w3cStatus();
53 this._stacktrace = undefined;
54 }
55
56 get stacktrace() {
57 return this._stacktrace || this.stack;

Callers

nothing calls this directly

Calls 2

errorMethod · 0.65
w3cStatusMethod · 0.45

Tested by

no test coverage detected