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