Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/typed_rpc/src/client.ts>RpcError

Lightweight JSON-RPC solution for TypeScript projects
Go to Latest
class RpcError
extends Error
import { RpcError } from "https://deno.land/x/typed_rpc@v4.2.2/src/client.ts";

Error class that is thrown if a remote method returns an error.

Constructors

new
RpcError(
message: string,
code: number,
data?: unknown,
)

Properties

code: number
optional
data: unknown