risingwave_common/util/value_encoding/
error.rs1use thiserror::Error;
16
17#[derive(Error, Debug)]
18pub enum ValueEncodingError {
19 #[error("Invalid bool value encoding: {0}")]
20 InvalidBoolEncoding(u8),
21 #[error("Invalid UTF8 value encoding: {0}")]
22 InvalidUtf8(#[from] std::string::FromUtf8Error),
23 #[error("Invalid Date value encoding: days: {0}")]
24 InvalidDateEncoding(i32),
25 #[error("invalid Timestamp value encoding: secs: {0} nsecs: {1}")]
26 InvalidTimestampEncoding(i64, u32),
27 #[error("invalid Time value encoding: secs: {0} nano: {1}")]
28 InvalidTimeEncoding(u32, u32),
29 #[error("Invalid null tag value encoding: {0}")]
30 InvalidTagEncoding(u8),
31 #[error("Invalid jsonb encoding")]
32 InvalidJsonbEncoding,
33 #[error("Invalid struct encoding: {0}")]
34 InvalidStructEncoding(
35 #[source]
36 #[backtrace]
37 crate::array::ArrayError,
38 ),
39 #[error("Invalid list encoding: {0}")]
40 InvalidListEncoding(
41 #[source]
42 #[backtrace]
43 crate::array::ArrayError,
44 ),
45 #[error("Invalid flag: {0:b}")]
46 InvalidFlag(u8),
47}