Skip to main content

Web3ValidatorError

Base class for Web3 errors.

Hierarchy

Index

Constructors

publicconstructor

Properties

cause

cause: undefined | Error

publiccode

code: number = ERR_VALIDATION

publicreadonlyerrors

errors: Web3ValidationErrorObject<string, Record<string, any>, unknown>[]

readonlyname

name: string

stack

stack: undefined | string

Accessors

innerError

  • get innerError(): undefined | Error | Error[]
  • set innerError(cause: undefined | Error | Error[]): void
  • @deprecated

    Use the cause property instead.


    Returns undefined | Error | Error[]

  • @deprecated

    Use the cause property instead.


    Parameters

    • cause: undefined | Error | Error[]

    Returns void

Methods

toJSON

  • toJSON(): { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
  • Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }

    • cause: undefined | Error
    • code: number
    • innerError: undefined | Error
    • message: string
    • name: string

staticconvertToString

  • convertToString(value: unknown, unquotValue?: boolean): string
  • Parameters

    • value: unknown
    • optionalunquotValue: boolean

    Returns string