Enum butane::Error [−][src]
pub enum Error {
Show 27 variants
NoSuchObject,
BoundsError(String),
CannotConvertSqlVal(SqlType, SqlVal),
SqlResultTypeMismatch {
col: String,
detail: String,
},
UnknownSqlType(String),
ValueNotLoaded,
NotInitialized,
AlreadyInitialized,
MigrationError(String),
UnknownBackend(String),
OutOfRange,
Internal(String),
CannotResolveType(String),
InvalidAuto(String),
NoCustomDefault,
IncompatibleCustom(SqlValCustom, &'static str),
IncompatibleCustomT(SqlTypeCustom, &'static str),
LiteralForCustomUnsupported(SqlValCustom),
SerdeJson(Error),
IO(Error),
SQLite(Error),
SQLiteFromSQL(FromSqlError),
Postgres(Error),
Chrono(ParseError),
CellBorrow(BorrowMutError),
TLS(Error),
Generic(Box<dyn Error + Send + Sync + 'static, Global>),
}
Expand description
Butane errors.
Variants
BoundsError(String)
Tuple Fields of BoundsError
0: String
UnknownSqlType(String)
Tuple Fields of UnknownSqlType
0: String
MigrationError(String)
Tuple Fields of MigrationError
0: String
UnknownBackend(String)
Tuple Fields of UnknownBackend
0: String
Internal(String)
Tuple Fields of Internal
0: String
CannotResolveType(String)
Tuple Fields of CannotResolveType
0: String
InvalidAuto(String)
Tuple Fields of InvalidAuto
0: String
IncompatibleCustom(SqlValCustom, &'static str)
Tuple Fields of IncompatibleCustom
0: SqlValCustom
1: &'static str
IncompatibleCustomT(SqlTypeCustom, &'static str)
Tuple Fields of IncompatibleCustomT
0: SqlTypeCustom
1: &'static str
LiteralForCustomUnsupported(SqlValCustom)
Tuple Fields of LiteralForCustomUnsupported
0: SqlValCustom
SerdeJson(Error)
Tuple Fields of SerdeJson
0: Error
IO(Error)
Tuple Fields of IO
0: Error
Postgres(Error)
Tuple Fields of Postgres
0: Error
Chrono(ParseError)
Tuple Fields of Chrono
0: ParseError
CellBorrow(BorrowMutError)
Tuple Fields of CellBorrow
TLS(Error)
Tuple Fields of TLS
0: Error
Trait Implementations
Performs the conversion.
Performs the conversion.