pub enum SparkError {
InvalidTtl,
TooLarge,
WriteLimit,
QuotaExceeded,
NotAvailable,
Internal,
ReadLimit,
BadKey,
NoCapability,
Unknown(i32),
}Expand description
Errors returned by Spark write operations.
The numeric codes below are stable across SDK versions and match the
sparkErr* constants in internal/corona/hostapi_spark.go.
Variants§
InvalidTtl
TTL value is invalid (negative, or above the host’s per-flare cap).
TooLarge
Value exceeds the host’s per-key size cap (max_kv_value_bytes,
default 64 KiB).
WriteLimit
Per-invocation write count exceeded.
QuotaExceeded
On-disk quota for this site is full.
NotAvailable
Spark is not configured on this edge.
Internal
Internal host error - see edge logs for details.
ReadLimit
Per-invocation read count exceeded. (Not currently returned by the host but reserved in the protocol.)
BadKey
Key failed validation (must match [a-zA-Z0-9:._-]{1,256} and not
start with __flaron: or __sys:).
NoCapability
Flare lacks the WritesSparkKV capability for this operation.
Unknown(i32)
Unknown error code returned by the host.
Trait Implementations§
Source§impl Debug for SparkError
impl Debug for SparkError
Source§impl Display for SparkError
impl Display for SparkError
Source§impl Error for SparkError
impl Error for SparkError
1.30.0 · 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()