From 7ce7d18daf3e053d5e982eee86dc38eadcdeb241 Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 28 Aug 2020 14:56:25 +0200 Subject: [PATCH] Added plotwindoeexceptions to version control --- ComplexPlotting/PlotWindowException.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ComplexPlotting/PlotWindowException.hpp diff --git a/ComplexPlotting/PlotWindowException.hpp b/ComplexPlotting/PlotWindowException.hpp new file mode 100644 index 0000000..e02f4fc --- /dev/null +++ b/ComplexPlotting/PlotWindowException.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "PlotWindow.hpp" + +class PlotWindowException : + public std::exception +{ +public: + PlotWindowException(const char* message, PlotWindow* src) : + std::exception(message), src(src) + { + } + + PlotWindow* where() const noexcept + { + return src; + } + +protected: + PlotWindow* src; +}; \ No newline at end of file