14 #ifndef HELIB_EXCEPTIONS_H
15 #define HELIB_EXCEPTIONS_H
57 virtual const char*
what() const noexcept = 0;
71 std::logic_error(what_arg){};
72 explicit LogicError(
const char* what_arg) : std::logic_error(what_arg){};
75 virtual const char*
what() const noexcept
override
77 return std::logic_error::what();
89 std::out_of_range(what_arg){};
91 std::out_of_range(what_arg){};
94 virtual const char*
what() const noexcept
override
96 return std::out_of_range::what();
108 std::runtime_error(what_arg){};
109 explicit RuntimeError(
const char* what_arg) : std::runtime_error(what_arg){};
112 virtual const char*
what() const noexcept
override
114 return std::runtime_error::what();
129 virtual const char*
what() const noexcept
override
131 return std::runtime_error::what();
143 std::invalid_argument(what_arg){};
145 std::invalid_argument(what_arg){};
148 virtual const char*
what() const noexcept
override
150 return std::invalid_argument::what();
155 #endif // End of header guard
Inherits from Exception and std::runtime_error.
Definition: exceptions.h:105
LogicError(const char *what_arg)
Definition: exceptions.h:72
virtual const char * what() const noexcept=0
Base class that other HElib exception classes inherit from.
Definition: exceptions.h:53
virtual ~InvalidArgument()
Definition: exceptions.h:146
RuntimeError(const char *what_arg)
Definition: exceptions.h:109
virtual const char * what() const noexcept override
Definition: exceptions.h:148
IOError(const std::string &what_arg)
Definition: exceptions.h:125
Inherits from Exception and std::logic_error.
Definition: exceptions.h:68
virtual ~RuntimeError()
Definition: exceptions.h:110
RuntimeError(const std::string &what_arg)
Definition: exceptions.h:107
InvalidArgument(const std::string &what_arg)
Definition: exceptions.h:142
virtual const char * what() const noexcept override
Definition: exceptions.h:112
virtual ~LogicError()
Definition: exceptions.h:73
virtual const char * what() const noexcept override
Definition: exceptions.h:129
virtual const char * what() const noexcept override
Definition: exceptions.h:75
virtual ~OutOfRangeError()
Definition: exceptions.h:92
Inherits from Exception and std::invalid_argument.
Definition: exceptions.h:140
InvalidArgument(const char *what_arg)
Definition: exceptions.h:144
Inherits from Exception and std::runtime_error.
Definition: exceptions.h:123
Definition: apiAttributes.h:21
virtual ~IOError()
Definition: exceptions.h:127
OutOfRangeError(const std::string &what_arg)
Definition: exceptions.h:88
virtual const char * what() const noexcept override
Definition: exceptions.h:94
OutOfRangeError(const char *what_arg)
Definition: exceptions.h:90
LogicError(const std::string &what_arg)
Definition: exceptions.h:70
Inherits from Exception and std::out_of_range.
Definition: exceptions.h:86
IOError(const char *what_arg)
Definition: exceptions.h:126
virtual ~Exception()=default