fusion-plugin-rpc
Version:
Fetch data on the server and client with an RPC style interface.
18 lines (15 loc) • 449 B
JavaScript
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
export default class MissingHandlerError extends Error {
code: ?string;
constructor(method: string) {
super(`Missing RPC handler for ${method}`);
this.code = 'ERR_MISSING_HANDLER';
Error.captureStackTrace(this, MissingHandlerError);
}
}