Skip to main content
Version: v9.0.0

OrpcErrorType

Error sent by an oRPC procedure, the JSON form of ORPCError . Errors from the .errors() map of the procedure have defined: true .


Import
import { OrpcErrorType } from "@hyper-fetch/orpc"

Preview​

type OrpcErrorType<Code,Data> = {
code: Code;
data: Data;
defined: boolean;
message: string;
status: number;
}

Structure​

OrpcErrorType
NameTypeDescription
code
Code
data
Data
defined
boolean
message
string
status
number