// Location: ./builtins/session/valkey/src/error.rs
// Copyright 2026
// SPDX-License-Identifier: Apache-2.0
// Authors: Fred Araujo
//
// Construction-time errors for the Valkey session-store backend. These
// surface when the `global.apl.session_store` config block is malformed
// or the connection pool cannot be built — i.e. at `load_config_yaml`
// time, NOT on the request hot path. Request-time failures flow through
// `apl_cpex::SessionStoreError` (the trait's return type) so callers can
// fail closed.
/// Error returned while building a `ValkeySessionStore` from config.