Common error types and utilities for AshScylla.
This module provides a unified interface for error handling across the AshScylla library, including ScyllaDB-specific errors, configuration errors, and query errors.
Functions
wrap_xandra_error/1— Convert Xandra errors toScyllaErrorformat_error/1— Format any error for displayretryable?/1— Check if an error is retryableretry_delay/1— Get suggested retry delay in milliseconds
See AshScylla.Error.ScyllaError for the structured error type with
categorization and suggestions.
Summary
Functions
Formats an error for display to the user.
Returns a suggested retry delay in milliseconds.
Checks if an error is retryable.
Wraps a Xandra error into a structured AshScylla error.
Functions
@spec format_error(AshScylla.Error.ScyllaError.t()) :: String.t()
@spec format_error(term()) :: String.t()
Formats an error for display to the user.
@spec retry_delay(AshScylla.Error.ScyllaError.t() | term()) :: non_neg_integer()
Returns a suggested retry delay in milliseconds.
@spec retryable?(AshScylla.Error.ScyllaError.t() | term()) :: boolean()
Checks if an error is retryable.
@spec wrap_xandra_error(Xandra.Error.t()) :: AshScylla.Error.ScyllaError.t()
@spec wrap_xandra_error(Xandra.ConnectionError.t()) :: AshScylla.Error.ScyllaError.t()
@spec wrap_xandra_error(term()) :: AshScylla.Error.ScyllaError.t()
Wraps a Xandra error into a structured AshScylla error.