pub enum MiniAppError {
Show 27 variants
Validation {
field: String,
reason: String,
},
NotFound {
id: String,
},
Schema(String),
Storage(Error),
Io(Error),
Config(String),
TableNotFound {
table: String,
},
TableRequired,
SchemaExists {
table: String,
},
Backup(String),
Snapshot(String),
BatchAborted {
op_index: usize,
reason: String,
},
MaterializeDestRelative {
path: String,
},
MaterializeDestInvalid {
path: String,
reason: String,
},
MaterializeIo(String),
MaterializeSha256(String),
MaterializeRowNotFound {
id: String,
},
MaterializeEmptyResult,
MaterializeFormatError(String),
MaterializeFieldUnknown {
field: String,
},
MaterializeInvalidParam {
field: String,
reason: String,
},
AliasNotFound {
name: String,
},
AliasAlreadyExists {
name: String,
},
AliasParamsRequired {
name: String,
},
AliasTemplateError(String),
AmbiguousId {
id_prefix: String,
candidates: Vec<String>,
},
Aggregator(String),
}Expand description
All errors that can arise inside mini-app-core.
Variants§
Validation
Validation failed for a specific field.
NotFound
No row with the given id was found.
Schema(String)
schema.yaml could not be parsed.
Storage(Error)
A SQLite storage error occurred.
Io(Error)
A filesystem I/O error occurred.
Config(String)
An environment-variable or .env configuration error occurred.
TableNotFound
The requested table is not mounted in the registry.
TableRequired
Multi-table mode requires a table argument that was omitted.
SchemaExists
A schema file already exists for the given table.
Backup(String)
A backup I/O or SQLite backup operation failed.
Snapshot(String)
A snapshot I/O or SQLite snapshot operation failed.
BatchAborted
schema_batch was aborted because one of its ops failed.
MaterializeDestRelative
The destination path supplied to row_materialize is not absolute.
MaterializeDestInvalid
The destination path is absolute but invalid for another reason.
MaterializeIo(String)
A filesystem I/O error occurred during row_materialize.
MaterializeSha256(String)
SHA-256 computation failed during row_materialize.
MaterializeRowNotFound
The row id specified in a ById selector was not found.
MaterializeEmptyResult
A ByFilter selector matched zero rows and ignore_empty is false.
MaterializeFormatError(String)
Serialization to the requested output format failed.
MaterializeFieldUnknown
A projected field name is not present in the table schema.
MaterializeInvalidParam
row_materialize parameters are structurally inconsistent.
AliasNotFound
No query alias with the given name was found in _aliases.
AliasAlreadyExists
An alias with the given name already exists in _aliases.
AliasParamsRequired
alias_run was called without params but the alias requires parameter
injection (its params_schema is non-null).
AliasTemplateError(String)
MiniJinja template rendering failed during alias_run.
AmbiguousId
An id prefix matched more than one row.
Aggregator(String)
A structural inconsistency was detected in a query_aggregate request
(empty sources, ATTACH-limit exceeded, inner-without-group-by, etc.).
Implementations§
Trait Implementations§
Source§impl Debug for MiniAppError
impl Debug for MiniAppError
Source§impl Display for MiniAppError
impl Display for MiniAppError
Source§impl Error for MiniAppError
impl Error for MiniAppError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()