bb8_mongodb/error.rs
1// Copyright (c) 2021 bb8-mongodb developers
2//
3// Licensed under the Apache License, Version 2.0
4// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
5// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. All files in the project carrying such notice may not be copied,
7// modified, or distributed except according to those terms.
8
9//! `bb8-mongodb` errors
10
11/// A `bb8-mongodb` Error
12#[derive(thiserror::Error, Debug)]
13pub enum Error {
14 /// An error from the `mongodb` library
15 #[error("There was an error connecting to the database!")]
16 MongoDB(#[from] mongodb::error::Error),
17}