ducky/error

Error types for DuckDB operations.

Types

Errors that can occur during DuckDB operations.

pub type Error {
  ConnectionFailed(reason: String)
  QuerySyntaxError(message: String)
  Timeout(duration_ms: Int)
  TypeMismatch(expected: String, got: String)
  DatabaseError(message: String)
}

Constructors

  • ConnectionFailed(reason: String)

    Connection to database failed.

  • QuerySyntaxError(message: String)

    SQL query has syntax errors.

  • Timeout(duration_ms: Int)

    Operation timed out.

  • TypeMismatch(expected: String, got: String)

    Type conversion failed.

  • DatabaseError(message: String)

    Generic error from DuckDB.

Search Document