AntigravityCliSdk.Error exception (AntigravityCliSdk v0.2.0)

Copy Markdown View Source

Unified error type for Antigravity CLI SDK operations.

Summary

Types

kind()

@type kind() ::
  :auth_error
  | :cli_not_found
  | :command_execution_failed
  | :config_invalid
  | :execution_failed
  | :input_error
  | :no_result
  | :parse_error
  | :run_deadline_exceeded
  | :stream_start_failed
  | :stream_timeout
  | :transport_error
  | :transport_exit
  | :unsupported_capability
  | :user_cancelled
  | :unknown

t()

@type t() :: %AntigravityCliSdk.Error{
  __exception__: true,
  cause: term(),
  context: map() | nil,
  details: String.t() | nil,
  exit_code: integer() | nil,
  kind: kind() | atom(),
  message: String.t()
}

Functions

from_runtime_failure(failure, opts \\ [])

@spec from_runtime_failure(
  CliSubprocessCore.ProviderCLI.ErrorRuntimeFailure.t(),
  keyword()
) :: t()

new(opts)

@spec new(keyword()) :: t()

normalize(error, opts)

@spec normalize(
  term(),
  keyword()
) :: t()