SnakeBridge.IntrospectionError exception (SnakeBridge v0.15.0)

Copy Markdown View Source

Structured error for Python introspection failures.

Summary

Functions

Parses Python stderr to classify the error.

Types

t()

@type t() :: %SnakeBridge.IntrospectionError{
  __exception__: true,
  message: String.t(),
  package: String.t() | nil,
  python_error: String.t() | nil,
  suggestion: String.t() | nil,
  type: :package_not_found | :import_error | :timeout | :introspection_bug
}

Functions

from_python_output(output, package)

@spec from_python_output(String.t(), String.t()) :: t()

Parses Python stderr to classify the error.