exception.hpp
Go to the documentation of this file.
#ifndef PROTOZERO_EXCEPTION_HPP
#define PROTOZERO_EXCEPTION_HPP
/*****************************************************************************
protozero - Minimalistic protocol buffer decoder and encoder in C++.
This file is from https://github.com/mapbox/protozero where you can find more
documentation.
*****************************************************************************/
#include <exception>
namespace protozero {
struct exception : std::exception {
const char *what() const noexcept { return "pbf exception"; }
};
struct varint_too_long_exception : exception {
const char *what() const noexcept { return "varint too long exception"; }
};
struct unknown_pbf_wire_type_exception : exception {
const char *what() const noexcept { return "unknown pbf field type exception"; }
};
struct end_of_buffer_exception : exception {
const char *what() const noexcept { return "end of buffer exception"; }
};
} // end namespace protozero
#endif // PROTOZERO_EXCEPTION_HPP
protozero::unknown_pbf_wire_type_exception
Definition: exception.hpp:48
protozero::unknown_pbf_wire_type_exception::what
const char * what() const noexcept
Returns the explanatory string.
Definition: exception.hpp:50
protozero::exception::what
const char * what() const noexcept
Returns the explanatory string.
Definition: exception.hpp:32
protozero::exception
Definition: exception.hpp:30
protozero::end_of_buffer_exception::what
const char * what() const noexcept
Returns the explanatory string.
Definition: exception.hpp:63
protozero::varint_too_long_exception
Definition: exception.hpp:39
protozero::end_of_buffer_exception
Definition: exception.hpp:61
protozero
All parts of the protozero header-only library are in this namespace.
Definition: byteswap.hpp:24
protozero::varint_too_long_exception::what
const char * what() const noexcept
Returns the explanatory string.
Definition: exception.hpp:41