mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 13:20:59 +00:00
12 lines
227 B
Rust
12 lines
227 B
Rust
use super::protocol::Response;
|
|
use crate::error::DbError;
|
|
|
|
#[derive(Debug)]
|
|
pub struct PostgresError(pub(super) Box<Response>);
|
|
|
|
impl DbError for PostgresError {
|
|
fn message(&self) -> &str {
|
|
self.0.message()
|
|
}
|
|
}
|