Viv JavaScript Runtime - v0.10.2
    Preparing search index...

    Class VivError

    Base class for all Viv runtime errors.

    Consumers who want to catch any Viv error can use instanceof VivError.

    Note: A VivError will never be thrown directly.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: VivErrorName = VivErrorName.VivError

    The name for a VivError.

    Methods

    • A custom inspect handler that produces a human-readable summary of the error.

      This handler will be invoked when the error is displayed in Node via console.log, console.error, util.inspect, or its uncaught-exception output.

      A few notes

      • This method only controls the display format. The structured properties will remain available for programmatic access.
      • The child error types may override this with more specific handlers.

      Parameters

      • depth: number

        The current recursion depth in the Node inspect call.

      • options: { colors: boolean }

        The Node inspect options (used to determine whether colors are enabled).

      Returns string

      A formatted string summarizing the error.

    • Returns a formatted human-readable summary of the error.

      Returns string