geam_core/planner/error/
unsupported.rs1use thiserror::Error;
2
3#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
4pub enum UnsupportedTopLevelKind {
5 #[error("backend external custom type")]
6 ExternalCustomType,
7}
8
9#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
10pub enum UnsupportedFunctionReason {
11 #[error("external functions are not executable by the Geam runtime")]
12 External,
13 #[error("main function is required")]
14 MissingMain,
15 #[error("main must not take arguments")]
16 MainWithArguments,
17}
18
19#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
20pub enum UnsupportedPatternKind {
21 #[error("list")]
22 List,
23}
24
25#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
26pub enum UnsupportedBitArraySegmentReason {
27 #[error("native-endian segments are not supported")]
28 NativeEndianness,
29 #[error("bit array segment size exceeds the supported host range")]
30 SizeOutOfRange,
31}