// SPDX-License-Identifier: BUSL-1.1
//! Shared error constructor for the protocol-neutral DSL handlers.
use DdlError;
/// Build a [`DdlError`] from an ANSI SQLSTATE code and a message.
///
/// Preserves the exact SQLSTATE / message the pgwire DSL handlers produced
/// (via `sqlstate_error`), so error parity stays byte-identical after the
/// migration off the pgwire router.
pub