14 #define EXCEPTION_HPP_
47 explicit JetpackStop(
const std::string &message) : _message(message) {}
59 const char *
what() const noexcept
override {
return _message.c_str(); }
77 explicit JetpackError(
const std::string &message) : _message(message) {}
89 const char *
what() const noexcept
override {
return _message.c_str(); }
An exception class for Jetpack errors.
Definition Exception.hpp:71
~JetpackError() override=default
Destructor for JetpackError class.
JetpackError(const std::string &message)
Constructor for JetpackError class.
Definition Exception.hpp:77
const char * what() const noexcept override
Gets the message of the exception.
Definition Exception.hpp:89
An exception class for stopping the Jetpack.
Definition Exception.hpp:41
JetpackStop(const std::string &message)
Constructor for JetpackStop class.
Definition Exception.hpp:47
~JetpackStop() override=default
Destructor for JetpackStop class.
const char * what() const noexcept override
Gets the message of the exception.
Definition Exception.hpp:59
An exception class for usage errors.
Definition Exception.hpp:23
JetpackUsage()
Constructor for JetpackUsage class.
Definition Exception.hpp:28
~JetpackUsage() override=default
Destructor for JetpackUsage class.