Enum butane::Error[][src]

pub enum Error {
Show 27 variants NoSuchObject, BoundsError(String), CannotConvertSqlVal(SqlTypeSqlVal), 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

NoSuchObject
BoundsError(String)

Tuple Fields of BoundsError

0: String
CannotConvertSqlVal(SqlTypeSqlVal)

Tuple Fields of CannotConvertSqlVal

0: SqlType1: SqlVal
SqlResultTypeMismatch

Fields of SqlResultTypeMismatch

col: Stringdetail: String
UnknownSqlType(String)

Tuple Fields of UnknownSqlType

0: String
ValueNotLoaded
NotInitialized
AlreadyInitialized
MigrationError(String)

Tuple Fields of MigrationError

0: String
UnknownBackend(String)

Tuple Fields of UnknownBackend

0: String
OutOfRange
Internal(String)

Tuple Fields of Internal

0: String
CannotResolveType(String)

Tuple Fields of CannotResolveType

0: String
InvalidAuto(String)

Tuple Fields of InvalidAuto

0: String
NoCustomDefault
IncompatibleCustom(SqlValCustom, &'static str)

Tuple Fields of IncompatibleCustom

0: SqlValCustom1: &'static str
IncompatibleCustomT(SqlTypeCustom, &'static str)

Tuple Fields of IncompatibleCustomT

0: SqlTypeCustom1: &'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
SQLite(Error)

Tuple Fields of SQLite

0: Error
SQLiteFromSQL(FromSqlError)

Tuple Fields of SQLiteFromSQL

0: FromSqlError
Postgres(Error)

Tuple Fields of Postgres

0: Error
Chrono(ParseError)

Tuple Fields of Chrono

0: ParseError
CellBorrow(BorrowMutError)

Tuple Fields of CellBorrow

0: BorrowMutError
TLS(Error)

Tuple Fields of TLS

0: Error
Generic(Box<dyn Error + Send + Sync + 'static, Global>)

Tuple Fields of Generic

0: Box<dyn Error + Send + Sync + 'static, Global>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.