exceptions.h
Go to the documentation of this file.
1#pragma once
2
3#include <ios> // for std::ios_base::failure
4
5#include "../exceptions.h"
6
8{
9
10 /**
11 * @brief Base class for exceptions in this library.
12 */
14 {
15 public:
16 using VoxelGridError::VoxelGridError;
17 };
18
19 /**
20 * @brief Indicates that voxel data with an invalid number of voxels
21 * has been passed to a VoxelGrid.
22 */
24 {
25 public:
26 BinaryIOError(const std::string& operation,
27 const std::string& path,
28 const std::string& reason,
29 const std::ios_base::failure& causing);
30 };
31
33 {
34 public:
35 BinaryReadError(const std::string& message, const std::ios_base::failure& causing);
36 };
37
38
39} // namespace visionx::voxelgrid::error::io
Base class for exceptions in this library.
Definition exceptions.h:17
BinaryIOError(const std::string &operation, const std::string &path, const std::string &reason, const std::ios_base::failure &causing)
Definition exceptions.cpp:8
BinaryReadError(const std::string &message, const std::ios_base::failure &causing)
Base class for exceptions in this library.
Definition exceptions.h:14