Stone.js API
    Preparing search index...

    Represents an error specific to the Stone CLI.

    Extends RuntimeError to provide a custom error type for handling CLI-related issues.

    Hierarchy (View Summary)

    Index
    • Creates a new instance of CliError.

      Parameters

      • message: string

        The error message describing the issue.

      • Optionaloptions: ErrorOptions

        Optional additional error options.

      Returns CliError

    cause?: Error
    code?: string
    metadata?: unknown
    • Converts the error to a formatted string representation.

      Parameters

      • Optionalmultiline: boolean

        Determine if output value must be multiline or not.

      Returns string

      A formatted error string.

    • Create a RuntimeError.

      Type Parameters

      • T extends RuntimeError = RuntimeError

      Parameters

      • message: string
      • Optionaloptions: ErrorOptions

        The options to create a RuntimeError.

      Returns T

      A new RuntimeError instance.