Skip to main content

class

Function class 

Source
pub fn class(err: &EngineError) -> ErrorClass
Expand description

Classification of err using the ScriptError-aware table.

Delegates to EngineError::class() for non-Transport variants; for Transport, downcasts the inner source to ScriptError and delegates to ScriptError::class(). Non-Valkey transport errors (no ScriptError inside) default to Terminal — retrying an unknown-shape error is unsafe.