Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Class VocabularyError

    Error subclass for business vocabulary resolution failures.

    const error = new VocabularyError({
    message: 'Term not found',
    attempted: 'Resolve vocabulary term: vendor',
    term: 'vendor',
    domain: 'procurement',
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    attempted: string
    code: ErrorCode
    details: Readonly<Record<string, unknown>>
    domain: string | undefined
    retryable: boolean
    severity: "error" | "info" | "warning"
    suggestions: readonly string[]
    term: string | undefined
    timestamp: string

    Methods

    • Returns structured context for AI agents to reason about the error.

      Returns AIErrorContext & { domain: string | undefined; term: string | undefined }

      AI-friendly context object.

      Same as toJSON() but omits stack and name — AI agents don't need stack traces, and the error type is conveyed by code.

      const context = error.toAIContext();
      // Send to LLM for self-healing analysis
    • Serializes the error to a plain JSON-safe object.

      Returns SerializedPramanError & { domain: string | undefined; term: string | undefined }

      Structured representation with all diagnostic fields.

      const json = error.toJSON();
      logger.debug(JSON.stringify(json, null, 2));
    • Formats the error for human-readable console output.

      Returns string

      Multi-line formatted string with all diagnostic sections.

      console.error(error.toUserMessage());