diff --git a/include/stdex/exception.h b/include/stdex/exception.h new file mode 100644 index 000000000..1f487cac6 --- /dev/null +++ b/include/stdex/exception.h @@ -0,0 +1,28 @@ +/* + SPDX-License-Identifier: MIT + Copyright © 2023 Amebis +*/ + +#pragma once + +#include "sal.h" +#include + +namespace stdex +{ + /// + /// User cancelled exception + /// + class user_cancelled : public std::exception + { + public: + /// + /// Constructs an exception + /// + /// \param[in] msg Error message + /// + user_cancelled(_In_opt_z_ const char *msg = nullptr) : exception(msg) + { + } + }; +} \ No newline at end of file