Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Class NavigationError

    Error subclass for FLP/route navigation failures.

    const error = new NavigationError({
    message: 'Route failed',
    attempted: 'Navigate to app',
    });

    FLP

    Requires active browser with FLP loaded

    Tile not found — semantic object or action not available in FLP

    Route failed — hash-based navigation did not resolve to a valid view

    Timeout — navigation did not complete within configured timeout

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a new NavigationError instance.

      Parameters

      • options: NavigationErrorOptions

        Navigation error construction options including target and current URLs for diagnostic context.

      Returns NavigationError

      import { NavigationError } from '#core/errors/navigation-error.js';

      const error = new NavigationError({
      message: 'FLP tile not found',
      attempted: 'Navigate to Purchase Order app',
      targetUrl: 'https://sap.example.com/app/po',
      currentUrl: 'https://sap.example.com/flp',
      });

    Properties

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

    Methods

    • Returns AI-agent-friendly context with navigation-specific diagnostic fields.

      Returns AIErrorContext & {
          currentUrl: string | undefined;
          targetUrl: string | undefined;
      }

      Base AI context extended with target and current URL details.

      const ctx = error.toAIContext();
      // LLM can compare ctx.targetUrl and ctx.currentUrl to diagnose
      // whether navigation started but resolved to the wrong view
    • Serializes this error to a JSON-safe object with navigation-specific fields.

      Returns SerializedPramanError & {
          currentUrl: string | undefined;
          targetUrl: string | undefined;
      }

      Base serialization extended with targetUrl and currentUrl.

      const json = error.toJSON();
      console.log(json.targetUrl); // 'https://sap.example.com/app/po'
      console.log(json.currentUrl); // 'https://sap.example.com/flp'
    • Formats the error for human-readable console output.

      Returns string

      Multi-line formatted string with all diagnostic sections.

      console.error(error.toUserMessage());