Skip to main content

Module error

Module error 

Source
Expand description

Error types for the Shopify API SDK.

This module contains error types used throughout the SDK for configuration and validation errors.

§Error Handling

All configuration constructors return Result<T, ConfigError> to enable fail-fast validation. Error messages are designed to be clear and actionable.

§Example

use shopify_sdk::{ApiKey, ConfigError};

let result = ApiKey::new("");
assert!(matches!(result, Err(ConfigError::EmptyApiKey)));

Enums§

ConfigError
Errors that can occur during SDK configuration.