Thrown when a repeated field has too many elements

Hierarchy

Constructors

  • Parameters

    • Optional message: string

    Returns MaxLengthError

  • Parameters

    • Optional message: string
    • Optional options: ErrorOptions

    Returns MaxLengthError

Properties

cause?: unknown
code: string = 'ERR_MAX_LENGTH'

This will be removed in a future release

Deprecated

use the .name property instead

message: string
name: string = 'MaxLengthError'
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void