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 {
  Error ,
  Timeout ,
  MaxDelay ,
  RandomDelay ,
  Skip
}
 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
Error 

return error

Timeout 

wait for deadline and return error

MaxDelay 

wait for deadline w/o returning an error

RandomDelay 

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

Skip 

no error

Definition at line 14 of file settings.hpp.