• Preparing search index...
  • The search index is not available
Vincent Docs
  • Vincent Docs
  • vincent-app-sdk
  • abilityClient
  • isAbilityResponseRuntimeFailure

Function isAbilityResponseRuntimeFailure

  • isAbilityResponseRuntimeFailure(
        value: unknown,
    ): value is AbilityExecuteResponseFailureNoResult<Record<string, any>>

    Type guard function that returns true only if the passed value is a failure ability response that was a runtime error This could be caused by code throw()ing an error from inside ability or policy code, or by errors encountered in the Vincent SDK wrapping code that handles the execution of the ability/policies.

    This could also be the result of a schema validation error -- use isAbilityResponseSchemaValidationFailure to check to see if have a data validation error.

    Parameters

    • value: unknown

    Returns value is AbilityExecuteResponseFailureNoResult<Record<string, any>>

    • Defined in app-sdk/src/abilityClient/typeGuards.ts:51

Settings

Vincent Docs
  • Loading...

Generated using TypeDoc