Options
All
  • Public
  • Public/Protected
  • All
Menu

An error which can occur during the Attestation process.

Hierarchy

Index

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Static claimMissing

claimMissing: ClaimError = new ClaimError('invalid request: claim is missing')

An error which is thrown when the Attestation object does not include the original claim object.

Static duringParsing

duringParsing: ClaimError = new ClaimError('invalid request: could not parse json')

An error which is thrown when the Attestation object cannot be deserialized to JSON.

Methods

Static notAnObject

  • notAnObject(type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"): ClaimError
  • An error which is thrown when the Attestation object includes a non-object type claim.

    Parameters

    • type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"

      The type of the claim found in the Attestation object.

    Returns ClaimError

    A new claim error.

Generated using TypeDoc