stdex Additional custom or not Standard C++ covered algorithms

Loading...
Searching...
No Matches
exception.hpp
1/*
2 SPDX-License-Identifier: MIT
3 Copyright © 2023-2024 Amebis
4*/
5
6#pragma once
7
8#include "compat.hpp"
9#include <stdexcept>
10
11 namespace stdex
12{
16 class user_cancelled : public std::runtime_error
17 {
18 public:
24 user_cancelled(_In_opt_z_ const char* msg = "operation cancelled") : runtime_error(msg) {}
25 };
26}
stdex::user_cancelled
User cancelled exception.
Definition exception.hpp:17
stdex::user_cancelled::user_cancelled
user_cancelled(const char *msg="operation cancelled")
Constructs an exception.
Definition exception.hpp:24