@polargold/pg-frontend-core
    Preparing search index...

    Class ApiCallError

    Thrown by API-calling wrappers (e.g. @polargold/pg-frontend-vue's useApi) when the wrapped callback fails. The original error is preserved on cause

    • use it to inspect the underlying failure (e.g. an HTTP status code from an Axios error) while still being able to catch every such failure uniformly as instanceof ApiCallError.

    Hierarchy

    • Error
      • ApiCallError
    Index
    cause: unknown
    message: string
    name: string
    stack?: string