Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryRangeError

The error that is thrown when an attempt is made to read or write to an area of a buffer that is outside the bounds of a supporting Memory instance.

remarks

The MemoryRangeError type extends RangeError in order to narrow errors thrown by the invalid use of Memory instances.

Hierarchy

  • RangeError
    • MemoryRangeError

Index

Constructors

  • new MemoryRangeError(message?: string, options?: ErrorOptions): MemoryRangeError
  • Initializes a new MemoryRangeError instance.

    Parameters

    • Optional message: string

      The message.

    • Optional options: ErrorOptions

      Optional parameters to use when constructing this MemoryRangeError

    Returns MemoryRangeError

Properties

cause?: Error
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc