protozero  1.6.0
Minimalistic protocol buffer decoder and encoder in C++.
exception.hpp
Go to the documentation of this file.
1 #ifndef PROTOZERO_EXCEPTION_HPP
2 #define PROTOZERO_EXCEPTION_HPP
3 
4 /*****************************************************************************
5 
6 protozero - Minimalistic protocol buffer decoder and encoder in C++.
7 
8 This file is from https://github.com/mapbox/protozero where you can find more
9 documentation.
10 
11 *****************************************************************************/
12 
19 #include <exception>
20 
24 namespace protozero {
25 
30 struct exception : std::exception {
32  const char* what() const noexcept override { return "pbf exception"; }
33 };
34 
41  const char* what() const noexcept override { return "varint too long exception"; }
42 };
43 
50  const char* what() const noexcept override { return "unknown pbf field type exception"; }
51 };
52 
63  const char* what() const noexcept override { return "end of buffer exception"; }
64 };
65 
74  const char* what() const noexcept override { return "invalid tag exception"; }
75 };
76 
84  const char* what() const noexcept override { return "invalid length exception"; }
85 };
86 
87 } // end namespace protozero
88 
89 #endif // PROTOZERO_EXCEPTION_HPP
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:74
Definition: exception.hpp:48
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:50
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:32
Definition: exception.hpp:82
Definition: exception.hpp:30
Definition: exception.hpp:72
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:41
Definition: exception.hpp:39
Definition: exception.hpp:61
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:63
const char * what() const noexcept override
Returns the explanatory string.
Definition: exception.hpp:84
All parts of the protozero header-only library are in this namespace.
Definition: byteswap.hpp:24