Skip to main content

classify

Function classify 

Source
pub fn classify(error: &Error) -> ErrorClass
Expand description

Classify an Error into an actionable ErrorClass.

Primarily useful for Error::Api errors where the HTTP status code and message body determine recovery strategy.