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

    Class VivValidationError

    Error thrown when validation fails for data at a touch point between the Viv runtime and a host application.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: VivErrorName = VivErrorName.VivValidationError

    The name for a VivValidationError.

    The kind of data that was being validated when the failure occurred.

    validationErrors: string[]

    An array containing human-readable explanations of the specific validation issues.

    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.

      Note: This method only controls the display format. The structured properties will remain available for programmatic access.

      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.