protozero
1.6.8
Minimalistic protocol buffer decoder and encoder in C++.
|
Go to the documentation of this file. 1 #ifndef PROTOZERO_EXCEPTION_HPP
2 #define PROTOZERO_EXCEPTION_HPP
30 struct exception : std::exception {
32 const char*
what() const noexcept
override {
33 return "pbf exception";
41 struct varint_too_long_exception : exception {
43 const char*
what() const noexcept
override {
44 return "varint too long exception";
52 struct unknown_pbf_wire_type_exception : exception {
54 const char*
what() const noexcept
override {
55 return "unknown pbf field type exception";
67 struct end_of_buffer_exception : exception {
69 const char*
what() const noexcept
override {
70 return "end of buffer exception";
80 struct invalid_tag_exception : exception {
82 const char*
what() const noexcept
override {
83 return "invalid tag exception";
92 struct invalid_length_exception : exception {
94 const char*
what() const noexcept
override {
95 return "invalid length exception";
101 #endif // PROTOZERO_EXCEPTION_HPP
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:42
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:81
All parts of the protozero header-only library are in this namespace.
Definition: byteswap.hpp:22
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:31
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:93
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:68
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:53