Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StructError

StructError objects are thrown (or returned) by Superstruct when its validation fails. The error represents the first error encountered during validation. But they also have an error.failures property that holds information for all of the failures encountered.

Hierarchy

  • TypeError
    • StructError

Indexable

[key: string]: any

StructError objects are thrown (or returned) by Superstruct when its validation fails. The error represents the first error encountered during validation. But they also have an error.failures property that holds information for all of the failures encountered.

Index

Constructors

constructor

Properties

branch

branch: Branch

failures

failures: Failure[]

message

message: string

name

name: string

path

path: Path

Optional stack

stack: undefined | string

type

type: string | undefined

value

value: any

Static TypeError

TypeError: TypeErrorConstructor