Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:52

0001 ///////////////////////////////////////////////////////////////////////////////
0002 // Copyright (c) Lewis Baker
0003 // Licenced under MIT license. See LICENSE.txt for details.
0004 ///////////////////////////////////////////////////////////////////////////////
0005 #ifndef CPPCORO_OPERATION_CANCELLED_HPP_INCLUDED
0006 #define CPPCORO_OPERATION_CANCELLED_HPP_INCLUDED
0007 
0008 #include <exception>
0009 
0010 namespace cppcoro
0011 {
0012     class operation_cancelled : public std::exception
0013     {
0014     public:
0015 
0016         operation_cancelled() noexcept
0017             : std::exception()
0018         {}
0019 
0020         const char* what() const noexcept override { return "operation cancelled"; }
0021     };
0022 }
0023 
0024 #endif