Skip to main content

error_kind

Function error_kind 

Source
pub(crate) fn error_kind(error: &(dyn Error + 'static)) -> &'static str
Expand description

Classifies an error by walking its source chain.

Returns timeout if any error in the chain is a timeout. Otherwise returns the kind of the outermost error that is a Kubernetes client or HTTP client error: api for an error status from the API server, decode for a response that failed to deserialize, transport for a connection or protocol error. Returns other for anything else.