1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.

use thiserror::Error;

#[derive(Debug, Error)]
pub enum DataTypeError {
    #[error("Unsupported type: {name}")]
    UnsupportedType { name: String },

    #[error("Unsupported collation code: {code}")]
    UnsupportedCollation { code: i32 },
}