#[repr(u16)]pub enum ErrorCode {
Show 16 variants
Unknown = 0,
InternalError = 1,
InvalidRequest = 2,
AuthenticationFailed = 3,
TenantNotFound = 4,
StreamNotFound = 5,
TableNotFound = 6,
QueryParseError = 7,
QueryExecutionError = 8,
PositionAhead = 9,
StreamAlreadyExists = 10,
InvalidOffset = 11,
StorageError = 12,
ProjectionLag = 13,
RateLimited = 14,
NotLeader = 15,
}Expand description
Error codes for wire protocol errors.
Variants§
Unknown = 0
Unknown error.
InternalError = 1
Internal server error.
InvalidRequest = 2
Invalid request format.
AuthenticationFailed = 3
Authentication failed.
TenantNotFound = 4
Tenant not found.
StreamNotFound = 5
Stream not found.
TableNotFound = 6
Table not found.
QueryParseError = 7
Query parse error.
QueryExecutionError = 8
Query execution error.
PositionAhead = 9
Position ahead of current.
StreamAlreadyExists = 10
Stream already exists.
InvalidOffset = 11
Invalid stream offset.
StorageError = 12
Storage error.
ProjectionLag = 13
Projection lag.
RateLimited = 14
Rate limit exceeded.
NotLeader = 15
Not the leader - client should retry on another node.
This error is returned in cluster mode when a write request is sent to a follower replica. The error message may include a leader hint to help the client redirect.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more