UNPKG

449 BJavaScriptView Raw
1/** Copyright (c) 2018 Uber Technologies, Inc.
2 *
3 * This source code is licensed under the MIT license found in the
4 * LICENSE file in the root directory of this source tree.
5 *
6 * @flow
7 */
8
9export default class MissingHandlerError extends Error {
10 code: ?string;
11
12 constructor(method: string) {
13 super(`Missing RPC handler for ${method}`);
14 this.code = 'ERR_MISSING_HANDLER';
15 Error.captureStackTrace(this, MissingHandlerError);
16 }
17}