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

Method constructor

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

Source from the content-addressed store, hash-verified

275
276export class UnknownMethodError extends ProtocolError {
277 constructor(message: string = '', cause?: Error) {
278 super(
279 message || 'The requested command matched a known URL but did not match an method for that URL',
280 UnknownMethodError.w3cStatus(),
281 UnknownMethodError.error(),
282 cause,
283 );
284 }
285 static w3cStatus() {
286 return HTTPStatusCodes.METHOD_NOT_ALLOWED;
287 }

Callers

nothing calls this directly

Calls 2

errorMethod · 0.65
w3cStatusMethod · 0.45

Tested by

no test coverage detected