# Function categorizeOutcomeError

- categorizeOutcomeError(
  error: unknown,
  ):
  | "unknown"
  | "timeout"
  | "parse"
  | "connection"
  | "execution"
  | "rate_limit"
  | "validation"
  | "authentication"
  | "generic"
  | "crash"
  | "adapter_unavailable"

  Classifies an error into an OutcomeFailureCategory for recording.

  #### Parameters

  - error: unknown

  #### Returns
  | "unknown"
  | "timeout"
  | "parse"
  | "connection"
  | "execution"
  | "rate_limit"
  | "validation"
  | "authentication"
  | "generic"
  | "crash"
  | "adapter_unavailable"

  - Defined in packages/nexus-agents/src/orchestration/outcomes/outcome-types.ts:317