Thrown when a map has too many elements

Hierarchy

Constructors

  • Parameters

    • Optional message: string

    Returns MaxSizeError

  • Parameters

    • Optional message: string
    • Optional options: ErrorOptions

    Returns MaxSizeError

Properties

cause?: unknown
code: string = 'ERR_MAX_SIZE'

This will be removed in a future release

Deprecated

use the .name property instead

message: string
name: string = 'MaxSizeError'
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