mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-27 14:16:18 +00:00
refactor: Define error for memory catalog
This commit is contained in:
@@ -1,17 +1,22 @@
|
||||
/// Common status code for public API.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum StatusCode {
|
||||
// ====== Begin of common status code ===========
|
||||
// ====== Begin of common status code ==============
|
||||
/// Unknown error.
|
||||
Unknown,
|
||||
/// Unsupported operation.
|
||||
Unsupported,
|
||||
/// Internal server error.
|
||||
Internal,
|
||||
// ====== End of common status code =============
|
||||
// ====== End of common status code ================
|
||||
|
||||
// ====== Begin of SQL related status code ======
|
||||
// ====== Begin of SQL related status code =========
|
||||
/// SQL Syntax error.
|
||||
InvalidSyntax,
|
||||
// ====== End of SQL related status code ========
|
||||
// ====== End of SQL related status code ===========
|
||||
|
||||
// ====== Begin of catalog related status code =====
|
||||
/// Table already exists.
|
||||
TableAlreadyExists,
|
||||
// ====== End of catalog related status code =======
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user