MMTF-C++
The C++ language MMTF libraries
Loading...
Searching...
No Matches
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
18namespace mmtf {
19
23class DecodeError: public std::runtime_error {
24public:
25 DecodeError(const std::string& m): std::runtime_error(m) { }
26};
27
31class EncodeError: public std::runtime_error {
32public:
33 EncodeError(const std::string& m): std::runtime_error(m) { }
34};
35
36} // mmtf namespace
37
38#endif
DecodeError(const std::string &m)
Definition errors.hpp:25
EncodeError(const std::string &m)
Definition errors.hpp:33
Definition binary_decoder.hpp:25