toip.tools

class · Browser and Node

BodyError

Why a body could not be read, in the TSP binding's failure terms.

@toip-tools/trust-coreView source
TypeScriptImport
import { BodyError } from "@toip-tools/trust-core";

Constructor

TypeScriptConstructor
new (failure: "invalidBody" | "wrongEnvelopeType", message: string): BodyError;

Parameters

failurerequired
"invalidBody" | "wrongEnvelopeType"
messagerequired
string

Returns

Properties

failurerequired · readonly
"invalidBody" | "wrongEnvelopeType"