pub enum PostGisError {
Connection(ConnectionError),
Query(QueryError),
Conversion(ConversionError),
Transaction(TransactionError),
Wkb(WkbError),
Sql(SqlError),
Core(OxiGdalError),
InvalidParameter {
parameter: &'static str,
message: String,
},
NotSupported {
operation: String,
},
}Expand description
The main error type for PostGIS operations
Variants§
Connection(ConnectionError)
Connection error occurred
Query(QueryError)
Query execution error
Conversion(ConversionError)
Type conversion error
Transaction(TransactionError)
Transaction error
Wkb(WkbError)
WKB encoding/decoding error
Sql(SqlError)
SQL generation error
Core(OxiGdalError)
OxiGDAL core error
InvalidParameter
Invalid parameter
NotSupported
Operation not supported
Trait Implementations§
Source§impl Debug for PostGisError
impl Debug for PostGisError
Source§impl Display for PostGisError
impl Display for PostGisError
Source§impl Error for PostGisError
impl Error for PostGisError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConnectionError> for PostGisError
impl From<ConnectionError> for PostGisError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<ConversionError> for PostGisError
impl From<ConversionError> for PostGisError
Source§fn from(source: ConversionError) -> Self
fn from(source: ConversionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PostGisError
impl From<Error> for PostGisError
Source§impl From<Error> for PostGisError
impl From<Error> for PostGisError
Source§impl From<OxiGdalError> for PostGisError
impl From<OxiGdalError> for PostGisError
Source§fn from(source: OxiGdalError) -> Self
fn from(source: OxiGdalError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for PostGisError
impl From<QueryError> for PostGisError
Source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<SqlError> for PostGisError
impl From<SqlError> for PostGisError
Source§impl From<TransactionError> for PostGisError
impl From<TransactionError> for PostGisError
Source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PostGisError
impl RefUnwindSafe for PostGisError
impl Send for PostGisError
impl Sync for PostGisError
impl Unpin for PostGisError
impl UnsafeUnpin for PostGisError
impl UnwindSafe for PostGisError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more