userver: error_injection Namespace Reference
Loading...
Searching...
No Matches
error_injection Namespace Reference

Detailed Description

Artificial errors injection framework.

Classes

class  Hook
 
struct  Settings
 Artificial error injection settings. More...
 

Enumerations

enum class  Verdict {
  kError ,
  kTimeout ,
  kMaxDelay ,
  kRandomDelay ,
  kSkip
}
 What error injection hook may decide to do. More...
 

Functions

Settings Parse (const yaml_config::YamlConfig &value, formats::parse::To< Settings >)
 

Enumeration Type Documentation

◆ Verdict

enum class error_injection::Verdict
strong

What error injection hook may decide to do.

Enumerator
kError 

return error

kTimeout 

wait for deadline and return error

kMaxDelay 

wait for deadline w/o returning an error

kRandomDelay 

wait for [0; deadline] w/o returning an error

kSkip 

no error

Definition at line 14 of file settings.hpp.