[−][src]Trait diesel::result::DatabaseErrorInformation  
Information about an error that was returned by the database.
Required Methods
fn message(&self) -> &str
The primary human-readable error message. Typically one line.
fn details(&self) -> Option<&str>
An optional secondary error message providing more details about the problem, if it was provided by the database. Might span multiple lines.
fn hint(&self) -> Option<&str>
An optional suggestion of what to do about the problem, if one was provided by the database.
fn table_name(&self) -> Option<&str>
The name of the table the error was associated with, if the error was associated with a specific table and the backend supports retrieving that information.
Currently this method will return None for all backends other than
PostgreSQL.
fn column_name(&self) -> Option<&str>
The name of the column the error was associated with, if the error was associated with a specific column and the backend supports retrieving that information.
Currently this method will return None for all backends other than
PostgreSQL.
fn constraint_name(&self) -> Option<&str>
The constraint that was violated if this error is a constraint violation and the backend supports retrieving that information.
Currently this method will return None for all backends other than
PostgreSQL.
Trait Implementations
impl Debug for dyn DatabaseErrorInformation + Send + Sync[src] 
impl Debug for dyn DatabaseErrorInformation + Send + SyncImplementations on Foreign Types
impl DatabaseErrorInformation for String[src] 
impl DatabaseErrorInformation for Stringfn message(&self) -> &str[src] 
fn message(&self) -> &strfn details(&self) -> Option<&str>[src] 
fn details(&self) -> Option<&str>fn hint(&self) -> Option<&str>[src] 
fn hint(&self) -> Option<&str>fn table_name(&self) -> Option<&str>[src] 
fn table_name(&self) -> Option<&str>fn column_name(&self) -> Option<&str>[src] 
fn column_name(&self) -> Option<&str>fn constraint_name(&self) -> Option<&str>[src] 
fn constraint_name(&self) -> Option<&str>