userver: proto_structs::OneofAccessError Class Reference
Loading...
Searching...
No Matches
proto_structs::OneofAccessError Class Reference

#include </data/code/userver/libraries/proto-structs/include/userver/proto-structs/exceptions.hpp>

Detailed Description

Trying to access unset proto_structs::Oneof field.

Note
This exception is also thrown if proto_structs::Oneof is cleared

Definition at line 30 of file exceptions.hpp.

+ Inheritance diagram for proto_structs::OneofAccessError:

Public Member Functions

 OneofAccessError (std::size_t field_idx)
 Creates error when attempting to access field_idx field of oneof
 

Constructor & Destructor Documentation

◆ OneofAccessError()

proto_structs::OneofAccessError::OneofAccessError ( std::size_t  field_idx)
explicit

Creates error when attempting to access field_idx field of oneof

Definition at line 21 of file exceptions.cpp.


The documentation for this class was generated from the following files: