fusion-plugin-rpc
Version:
Fetch data on the server and client with an RPC style interface.
17 lines (14 loc) • 458 B
text/typescript
/** 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.
*
*/
export default class MissingHandlerError extends Error {
code: string | undefined | null;
constructor(method: string) {
super(`Missing RPC handler for ${method}`);
this.code = 'ERR_MISSING_HANDLER';
Error.captureStackTrace(this, MissingHandlerError);
}
}