Error raised when symbol conversion fails.
Provides detailed context about what went wrong, including the symbol, reason, exchange ID, and market type when available.
Summary
Functions
Creates an error for invalid symbol format.
Creates a symbol error with optional symbol, reason, exchange, and market context.
Creates an error for parse failures.
Creates an error for missing pattern configuration.
Creates an error for unknown quote currency.
Creates an error when a reverse conversion rewrote an id without unifying it.
Creates an error for unsupported prefix patterns.
Types
@type reason() :: :invalid_format | :pattern_not_found | :unknown_quote_currency | :parse_failed | :unrepresentable_id | {:unsupported_prefix, String.t()}
Functions
Creates an error for invalid symbol format.
Creates a symbol error with optional symbol, reason, exchange, and market context.
Creates an error for parse failures.
Creates an error for missing pattern configuration.
Creates an error for unknown quote currency.
Creates an error when a reverse conversion rewrote an id without unifying it.
Used when a pattern path partially transforms an exchange id (e.g. upcase) but does not produce a unified symbol — returning that intermediate would be a plausible-but-wrong string that resolves to nothing.
Creates an error for unsupported prefix patterns.