Documentation
    Preparing search index...

    Class FormatError

    The exception that is thrown when the format of an argument is invalid, or when a composite format string is not well formed.

    Hierarchy

    Index

    Constructors

    Properties

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

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void