25 lines
608 B
C++
25 lines
608 B
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Copyright (c) Lewis Baker
|
|
// Licenced under MIT license. See LICENSE.txt for details.
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
#ifndef CPPCORO_OPERATION_CANCELLED_HPP_INCLUDED
|
|
#define CPPCORO_OPERATION_CANCELLED_HPP_INCLUDED
|
|
|
|
#include <exception>
|
|
|
|
namespace cppcoro
|
|
{
|
|
class operation_cancelled : public std::exception
|
|
{
|
|
public:
|
|
|
|
operation_cancelled() noexcept
|
|
: std::exception()
|
|
{}
|
|
|
|
const char* what() const noexcept override { return "operation cancelled"; }
|
|
};
|
|
}
|
|
|
|
#endif
|