1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use fluvio_protocol::{Encoder, Decoder};
#[repr(i32)]
#[derive(thiserror::Error, Debug, Clone, Eq, PartialEq, Encoder, Default, Decoder)]
#[non_exhaustive]
#[fluvio(encode_discriminant)]
pub enum SmartModuleTransformErrorStatus {
#[error("encountered unknown error during SmartModule processing")]
#[default]
UnknownError = -1,
#[error("failed to decode SmartModule base input")]
DecodingBaseInput = -11,
#[error("failed to decode SmartModule record input")]
DecodingRecords = -22,
#[error("failed to encode SmartModule output")]
EncodingOutput = -33,
#[error("failed to parse SmartModule extra params")]
ParsingExtraParams = -44,
#[error("undefined right record in Join SmartModule")]
UndefinedRightRecord = -55,
}
#[repr(i32)]
#[derive(thiserror::Error, Debug, Clone, Eq, PartialEq, Encoder, Default, Decoder)]
#[non_exhaustive]
#[fluvio(encode_discriminant)]
pub enum SmartModuleInitErrorStatus {
#[error("encountered unknown error during SmartModule processing")]
#[default]
UnknownError = -1,
#[error("Error during initialization")]
InitError = -2,
#[error("failed to decode SmartModule init input")]
DecodingInput = -10,
#[error("failed to encode SmartModule init output")]
EncodingOutput = -11,
}
#[derive(thiserror::Error, Debug)]
pub enum SmartModuleInitError {
#[error("Missing param {0}")]
MissingParam(String),
}