Mind that min/max Windows.h mess is Microsoft's problem, not ours. Signed-off-by: Simon Rozman <simon@rozman.si>
27 lines
427 B
C++
27 lines
427 B
C++
/*
|
|
SPDX-License-Identifier: MIT
|
|
Copyright © 2023 Amebis
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "compat.hpp"
|
|
#include <stdexcept>
|
|
|
|
namespace stdex
|
|
{
|
|
///
|
|
/// User cancelled exception
|
|
///
|
|
class user_cancelled : public std::runtime_error
|
|
{
|
|
public:
|
|
///
|
|
/// Constructs an exception
|
|
///
|
|
/// \param[in] msg Error message
|
|
///
|
|
user_cancelled(_In_opt_z_ const char* msg = "operation cancelled") : runtime_error(msg) {}
|
|
};
|
|
}
|