use thiserror::Error;
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
pub enum UnsupportedTopLevelKind {
#[error("backend external custom type")]
ExternalCustomType,
}
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
pub enum UnsupportedFunctionReason {
#[error("external functions are not executable by the Geam runtime")]
External,
#[error("main function is required")]
MissingMain,
#[error("main must not take arguments")]
MainWithArguments,
}
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
pub enum UnsupportedPatternKind {
#[error("list")]
List,
}
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
pub enum UnsupportedBitArraySegmentReason {
#[error("native-endian segments are not supported")]
NativeEndianness,
#[error("bit array segment size exceeds the supported host range")]
SizeOutOfRange,
}