MMTF-C++
The C++ language MMTF libraries
errors.hpp
Go to the documentation of this file.
1 // *************************************************************************
2 //
3 // Licensed under the MIT License (see accompanying LICENSE file).
4 //
5 // The authors of this code are: Gerardo Tauriello
6 //
7 // Based on mmtf_c developed by Julien Ferte (http://www.julienferte.com/),
8 // Anthony Bradley, Thomas Holder with contributions from Yana Valasatava,
9 // Gazal Kalyan, Alexander Rose. Updated 2018 by Daniel Farrell.
10 //
11 // *************************************************************************
12 
13 #ifndef MMTF_ERRORS_H
14 #define MMTF_ERRORS_H
15 
16 #include <stdexcept>
17 
18 namespace mmtf {
19 
23 class DecodeError: public std::runtime_error {
24 public:
25  DecodeError(const std::string& m): std::runtime_error(m) { }
26 };
27 
31 class EncodeError: public std::runtime_error {
32 public:
33  EncodeError(const std::string& m): std::runtime_error(m) { }
34 };
35 
36 } // mmtf namespace
37 
38 #endif
mmtf::DecodeError::DecodeError
DecodeError(const std::string &m)
Definition: errors.hpp:25
mmtf::DecodeError
Exception thrown when failing during decoding.
Definition: errors.hpp:23
mmtf::EncodeError::EncodeError
EncodeError(const std::string &m)
Definition: errors.hpp:33
mmtf::EncodeError
Exception thrown when failing during encoding.
Definition: errors.hpp:31
mmtf
Definition: binary_decoder.hpp:24