Class HonuaCapabilityNotSupportedError

Thrown when a Source is asked to perform an operation that the underlying protocol or server does not support and the active capability policy is strict. The capability field names the missing capability so callers can decide whether to swap protocols, fall back to a degraded strategy, or surface the limitation to the user.

Hierarchy (view full)

Constructors

Properties

capability: string
cause?: unknown
context: Readonly<Record<string, HonuaErrorEnvelopeContextValue>>
kind: "honua.sdk.error.v1" = HONUA_ERROR_KIND
message: string
name: string
operationId: undefined | string
protocol: string
requestId: undefined | string
retryable: boolean
sdkCode:
    | "core.http.transient"
    | "core.http.rejected"
    | "core.timeout"
    | "core.network"
    | "core.cancelled"
    | "core.grpc.transient"
    | "core.grpc.rejected"
    | "core.geometry.unknown-geometry"
    | "core.geometry.malformed-geometry"
    | "core.auth.interaction-required"
    | "core.auth.refresh-failed"
    | "core.auth.invalid-grant"
    | "core.capability-not-supported"
    | "core.exploration-context"
    | "core.wfs-exception"
    | "core.job-failed"
    | "core.wms-capabilities-parse"
    | "core.wmts-capabilities-parse"
    | "discovery.ambiguous-protocol"
    | "discovery.ambiguous-source"
    | "discovery.invalid-endpoint"
    | "discovery.invalid-cache-identity"
    | "discovery.invalid-discovery-cache"
    | "discovery.invalid-capability"
    | "discovery.unsupported-protocol"
    | "discovery.protocol-mismatch"
    | "query.planning.invalid-query"
    | "query.planning.unsupported-compiler"
    | "query.planning.unsupported-query"
    | "query.planning.capability-not-supported"
    | "query.planning.fallback-disabled"
    | "query.planning.unsafe-materialization"
    | "query.execution.invalid-plan"
    | "query.execution.plan-context-mismatch"
    | "query.execution.unsafe-materialization"
    | "query.execution.invalid-resource-handle"
    | "query.execution.resource-unavailable"
    | "query.execution.resource-expired"
    | "query.execution.resource-resolution-failed"
    | "query.execution.resource-execution-failed"
    | "map.source-adapter.disposed"
    | "map.source-adapter.source-conflict"
    | "map.source-adapter.layer-conflict"
    | "map.source-adapter.unsupported-plan"
    | "map.source-adapter.invalid-option"
    | "map.source-adapter.map-mutation-failed"
    | "map.data-bridge.invalid-option"
    | "map.data-bridge.disposed"
    | "map.data-bridge.source-conflict"
    | "map.data-bridge.layer-conflict"
    | "map.data-bridge.map-mutation-failed"
    | "map.data-bridge.interaction-unsupported"
    | "map.data-bridge.filter-unsupported"
    | "map.automatic-strategy.no-eligible-strategy"
    | "map.automatic-strategy.stale-plan"
    | "map.automatic-strategy.source-conflict"
    | "map.automatic-strategy.layer-conflict"
    | "map.automatic-strategy.map-mutation-failed"
    | "map.automatic-strategy.cancelled"
    | "map.automatic-strategy.disposed"
    | "map.raster-strategy.unsupported-strategy"
    | "map.raster-strategy.capability-mismatch"
    | "map.raster-strategy.missing-metadata"
    | "map.raster-strategy.invalid-option"
    | "map.raster-strategy.source-conflict"
    | "map.raster-strategy.layer-conflict"
    | "map.raster-strategy.map-mutation-failed"
    | "map.automatic-integration.disposed"
    | "map.automatic-integration.invalid-target"
    | "map.temporal-playback.invalid-option"
    | "runtime.map-package.fetch"
    | "runtime.map-package.load"
    | "runtime.map-package.validate"
    | "runtime.map-package.update"
    | "runtime.map-package.style-compose"
    | "runtime.map-package.source-bind"
    | "runtime.map-package.view"
    | "runtime.map-package.popup"
    | "runtime.map-package.dispose"
    | "runtime.diagnostic"
    | "runtime.query-tiles.transient"
    | "runtime.query-tiles.rejected"
    | "realtime.cancelled"
    | "realtime.transport.reconnectable"
    | "realtime.checkpoint.invalid"
    | "realtime.sequence.gap"
    | "realtime.protocol.terminal"
    | "offline.region.validation"
    | "offline.region.quota"
    | "offline.region.integrity"
    | "offline.cancelled"
    | "offline.transport.failure"
    | "offline.transport.transient"
    | "offline.storage.concurrent"
    | "offline.storage.failure"
    | "offline.replica-sync.capability"
    | "offline.replica-sync.validation"
    | "offline.replica-sync.permission-denied"
    | "plugin.registry.validation"
    | "plugin.compatibility"
    | "plugin.execution.policy-denied"
    | "plugin.capability-unavailable"
    | "plugin.lifecycle.activation"
    | "plugin.execution.validation"
    | "plugin.lifecycle.cleanup"
    | "plugin.cancelled"
    | "plugin.internal"

Globally unique registry code. Legacy subclasses may retain a separate .code.

sourceId: undefined | string
stack?: string
stackTraceLimit: number

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Methods

  • Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

    const myObject = {};
    Error.captureStackTrace(myObject);
    myObject.stack; // Similar to `new Error().stack`

    The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

    The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

    The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

    function a() {
    b();
    }

    function b() {
    c();
    }

    function c() {
    // Create an error without stack trace to avoid calculating the stack trace twice.
    const { stackTraceLimit } = Error;
    Error.stackTraceLimit = 0;
    const error = new Error();
    Error.stackTraceLimit = stackTraceLimit;

    // Capture the stack trace above function b
    Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
    throw error;
    }

    a();

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void