From 6fd7438eccf44b3ee366de473ab689cf28b32593 Mon Sep 17 00:00:00 2001 From: lucaspalomodevelop Date: Tue, 3 Oct 2023 17:27:05 +0200 Subject: [PATCH] add ParameterException --- src/exceptions/exceptions.hpp | 1 + src/exceptions/parameterException.hpp | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/exceptions/parameterException.hpp diff --git a/src/exceptions/exceptions.hpp b/src/exceptions/exceptions.hpp index 7112c0d..09e8be1 100644 --- a/src/exceptions/exceptions.hpp +++ b/src/exceptions/exceptions.hpp @@ -3,5 +3,6 @@ #include "generic_exception.hpp" #include "notImplementedException.hpp" +#include "parameterException.hpp" #endif // EXCEPTIONS_HPP \ No newline at end of file diff --git a/src/exceptions/parameterException.hpp b/src/exceptions/parameterException.hpp new file mode 100644 index 0000000..19fc6cb --- /dev/null +++ b/src/exceptions/parameterException.hpp @@ -0,0 +1,22 @@ +#ifndef PARAMETEREXCEPTION_HPP +#define PARAMETEREXCEPTION_HPP + +#include "generic_exception.hpp" + +namespace lpstd +{ + namespace exceptions + { + class ParameterException : public generic_exception + { + public: + ParameterException(std::string message = "ParameterException") : generic_exception(message) + { + } + }; + + } // namespace exceptions + +} // namespace lpstd + +#endif // PARAMETEREXCEPTION_HPP \ No newline at end of file