exceptions.cpp
Go to the documentation of this file.
1 #include "exceptions.h"
2 
3 #include <sstream>
4 
5 
7 {
8 
9  BinaryIOError::BinaryIOError(const std::string& operation, const std::string& path,
10  const std::string& reason, const std::ios_base::failure& causing) :
12  "Failed to " + operation + " voxel grid from/to '" + path + "'.\n"
13  "Reason: " + reason + "\n"
14  "Caused by : " + std::string(causing.what()))
15  {}
16 
17  BinaryReadError::BinaryReadError(const std::string& message, const std::ios_base::failure& causing) :
18  VoxelGridIOError(message + "\nCaused by: " + std::string(causing.what()))
19  {}
20 
21 
22 }
23 
24 
visionx::voxelgrid::error::io::BinaryReadError::BinaryReadError
BinaryReadError(const std::string &message, const std::ios_base::failure &causing)
Definition: exceptions.cpp:17
message
message(STATUS "Boost-Library-Dir: " "${Boost_LIBRARY_DIRS}") message(STATUS "Boost-LIBRARIES
Definition: CMakeLists.txt:8
exceptions.h
visionx::voxelgrid::error::io::BinaryIOError::BinaryIOError
BinaryIOError(const std::string &operation, const std::string &path, const std::string &reason, const std::ios_base::failure &causing)
Definition: exceptions.cpp:9
std
Definition: Application.h:66
visionx::voxelgrid::error::io::VoxelGridIOError
Base class for exceptions in this library.
Definition: exceptions.h:14
visionx::voxelgrid::error::io
Definition: exceptions.cpp:6