bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
UnsupportedTypeException.h
1//
2// Created by ndp on 8/18/23.
3//
4
5
6#ifndef BES_UNSUPPORTEDTYPEEXCEPTION_H
7#define BES_UNSUPPORTEDTYPEEXCEPTION_H
8
9#include "config.h"
10
11#include <exception>
12#include <string>
13#include <utility>
14
15namespace dmrpp {
16
20class UnsupportedTypeException : public std::exception {
21
22private:
23 std::string d_msg;
24
25public:
26 explicit UnsupportedTypeException(std::string msg) : d_msg(std::move(msg)){};
27 UnsupportedTypeException() = delete;
28 UnsupportedTypeException(const UnsupportedTypeException &e) noexcept = default;
29 UnsupportedTypeException(UnsupportedTypeException &&e) noexcept = default;
30 ~UnsupportedTypeException() override = default;
31
32 UnsupportedTypeException& operator=(UnsupportedTypeException &&e) noexcept = default;
33 UnsupportedTypeException& operator=(const UnsupportedTypeException &e) = default;
34
35 const char* what() const noexcept override { return d_msg.c_str(); };
36};
37
38} // namespace dmrpp
39
40#endif //BES_UNSUPPORTEDTYPEEXCEPTION_H