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

Method constructor

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

Source from the content-addressed store, hash-verified

185
186export class UnknownCommandError extends ProtocolError {
187 constructor(message: string = '', cause?: Error) {
188 super(
189 message ||
190 'The requested resource could not be found, or a request was ' +
191 'received using an HTTP method that is not supported by the mapped ' +
192 'resource.',
193 UnknownCommandError.w3cStatus(),
194 UnknownCommandError.error(),
195 cause,
196 );
197 }
198 static w3cStatus() {
199 return HTTPStatusCodes.NOT_FOUND;
200 }

Callers

nothing calls this directly

Calls 2

errorMethod · 0.65
w3cStatusMethod · 0.45

Tested by

no test coverage detected