ALPSCore reference
Main Page
Related Pages
Classes
Files
File List
File Members
alps
hdf5
errors.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
4
* For use in publications, see ACKNOWLEDGE.TXT
5
*/
6
7
#ifndef ALPS_HDF5_ERROR_HPP
8
#define ALPS_HDF5_ERROR_HPP
9
10
#include <string>
11
#include <stdexcept>
12
13
namespace
alps
{
14
namespace
hdf5 {
15
16
class
archive_error
:
public
std::runtime_error {
17
public
:
18
archive_error
(std::string
const
& what)
19
:
std
::runtime_error(what)
20
{}
21
};
22
23
#define DEFINE_ALPS_HDF5_EXCEPTION(name) \
24
class name : public archive_error { \
25
public: \
26
name (std::string const & what) \
27
: archive_error(what) \
28
{} \
29
};
30
DEFINE_ALPS_HDF5_EXCEPTION
(
archive_not_found
)
31
DEFINE_ALPS_HDF5_EXCEPTION
(
archive_closed
)
32
DEFINE_ALPS_HDF5_EXCEPTION
(
archive_opened
)
33
DEFINE_ALPS_HDF5_EXCEPTION
(
invalid_path
)
34
DEFINE_ALPS_HDF5_EXCEPTION
(
path_not_found
)
35
DEFINE_ALPS_HDF5_EXCEPTION
(
wrong_type
)
36
DEFINE_ALPS_HDF5_EXCEPTION
(
wrong_mode
)
37
DEFINE_ALPS_HDF5_EXCEPTION
(
wrong_dimensions
)
38
#undef DEFINE_ALPS_HDF5_EXCEPTION
39
}
40
};
41
42
#endif
alps::hdf5::path_not_found
Definition:
errors.hpp:34
DEFINE_ALPS_HDF5_EXCEPTION
#define DEFINE_ALPS_HDF5_EXCEPTION(name)
Definition:
errors.hpp:23
alps::hdf5::wrong_type
Definition:
errors.hpp:35
alps::hdf5::archive_error
Definition:
errors.hpp:16
alps::hdf5::archive_not_found
Definition:
errors.hpp:30
std
STL namespace.
alps::hdf5::archive_error::archive_error
archive_error(std::string const &what)
Definition:
errors.hpp:18
alps::hdf5::invalid_path
Definition:
errors.hpp:33
alps::hdf5::archive_closed
Definition:
errors.hpp:31
alps::hdf5::archive_opened
Definition:
errors.hpp:32
alps::hdf5::wrong_dimensions
Definition:
errors.hpp:37
alps::hdf5::wrong_mode
Definition:
errors.hpp:36
alps
Definition:
boost_array_functions.hpp:24
Generated on Sun Oct 14 2018 12:18:30 for ALPSCore reference by
1.8.11