IndeRunException
Standardized framework exception thrown when route selection or provider execution fails. Extends the native JavaScript Error class and exposes normalized error schema fields.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IndeRunException(
params):IndeRunException
Parameters
Section titled “Parameters”params
Section titled “params”IndeRunExceptionParams
Returns
Section titled “Returns”IndeRunException
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Inherited from
Section titled “Inherited from”Error.cause
details?
Section titled “details?”
readonlyoptionaldetails?:Record<string,unknown>
Custom details and metadata context.
errorClass
Section titled “errorClass”
readonlyerrorClass:ErrorClass
The categorized class of error.
message
Section titled “message”message:
string
Inherited from
Section titled “Inherited from”Error.message
name:
string
Inherited from
Section titled “Inherited from”Error.name
provenance?
Section titled “provenance?”
readonlyoptionalprovenance?:ExecutionProvenance
How the failed execution played out: attempts, rejections, the provider committed to.
providerId?
Section titled “providerId?”
readonlyoptionalproviderId?:string
The provider ID responsible for the error.
retryable?
Section titled “retryable?”
readonlyoptionalretryable?:boolean
Whether the error is transient and retryable.
retryAfterMs?
Section titled “retryAfterMs?”
readonlyoptionalretryAfterMs?:number
Suggested cooling-down time in milliseconds before retry.
runId?
Section titled “runId?”
readonlyoptionalrunId?:string
The unique execution run ID.
schemaVersion
Section titled “schemaVersion”
readonlyschemaVersion:"1.0"="1.0"
The schema version matching the API contracts.
stack?
Section titled “stack?”
optionalstack?:string
Inherited from
Section titled “Inherited from”Error.stack
Methods
Section titled “Methods”toContractError()
Section titled “toContractError()”toContractError():
IndeRunError
Converts the exception into a JSON-compatible contract-compliant IndeRunError.
Returns
Section titled “Returns”withProvenance()
Section titled “withProvenance()”withProvenance(
provenance):IndeRunException
A copy of this exception carrying provenance. The engine attaches provenance once it
knows how the whole execution ended, replacing anything set earlier.
Parameters
Section titled “Parameters”provenance
Section titled “provenance”Returns
Section titled “Returns”IndeRunException
IndeRun — open-source AI execution for cross-platform apps. Built and maintained by Independo GmbH (opens in new tab), supported by netidee (opens in new tab).
MIT-licensed SDK · No SDK usage telemetry.
© 2025–2026 Independo GmbH