23#include "openPMD/ThrowError.hpp"
40class Error :
public std::exception
46 Error(std::string what) : m_what(what)
50 virtual const char *what()
const noexcept;
52 Error(Error
const &) =
default;
53 Error(Error &&) =
default;
55 Error &operator=(Error
const &) =
default;
56 Error &operator=(Error &&) =
default;
58 virtual ~Error()
noexcept =
default;
69 class OperationUnsupportedInBackend :
public Error
73 OperationUnsupportedInBackend(
74 std::string backend_in, std::string
const &what);
83 class WrongAPIUsage :
public Error
86 WrongAPIUsage(std::string
const &what);
89 class BackendConfigSchema :
public Error
92 std::vector<std::string> errorLocation;
94 BackendConfigSchema(std::vector<std::string>, std::string what);
102 class Internal :
public Error
105 Internal(std::string
const &what);
111 class ReadError :
public Error
114 AffectedObject affectedObject;
117 std::optional<std::string> backend;
118 std::string description;
123 std::optional<std::string> backend_in,
124 std::string description_in);
127 class NoSuchAttribute :
public Error
130 NoSuchAttribute(std::string attributeName);
133 class IllegalInOpenPMDStandard :
public Error
136 IllegalInOpenPMDStandard(std::string what);
An operation was requested that is not supported in a specific backend.
Definition Error.hpp:70
Public definitions of openPMD-api.
Definition Date.cpp:29
error::NoSuchAttribute no_such_attribute_error
Backward-compatibility alias for no_such_attribute_error.
Definition Error.hpp:156
error::OperationUnsupportedInBackend unsupported_data_error
Backward-compatibility alias for unsupported_data_error.
Definition Error.hpp:150
error::ReadError no_such_file_error
Backward-compatibility alias for no_such_file_error.
Definition Error.hpp:144