Volume Cartographer 2.27.0
Exceptions.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <stdexcept>
6#include <string>
7
8namespace volcart
9{
10
22class IOException : public std::exception
23{
24public:
27 explicit IOException(const char* msg) : msg_(msg) {}
28
30 explicit IOException(std::string msg) : msg_(std::move(msg)) {}
34 const char* what() const noexcept override { return msg_.c_str(); }
35
36protected:
37 std::string msg_;
38};
39} // namespace volcart
IO operation exception.
Definition: Exceptions.hpp:23
IOException(std::string msg)
Definition: Exceptions.hpp:30
IOException(const char *msg)
Definition: Exceptions.hpp:27
const char * what() const noexcept override
Definition: Exceptions.hpp:34
Volume Cartographer library