diff --git a/src/Exceptions/InternalFatalErrorException.hpp b/src/Exceptions/InternalFatalErrorException.hpp new file mode 100644 index 00000000..d700b01d --- /dev/null +++ b/src/Exceptions/InternalFatalErrorException.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include "Exception.hpp" +#include "src/Services/PathService.hpp" + +namespace Exceptions +{ + class InternalFatalErrorException: public Exception + { + public: + explicit InternalFatalErrorException(const std::string& message) + : Exception( + "Internal fatal error - " + message + " - please report this via " + + Services::PathService::homeDomainName() + "/report-issue" + ) + {} + + explicit InternalFatalErrorException(const char* message) + : InternalFatalErrorException(std::string(message)) + {} + }; +}