diff --git a/sdk/core/azure-core/inc/azure/core/context.hpp b/sdk/core/azure-core/inc/azure/core/context.hpp index 96ea7f0ca..76d6d2b7c 100644 --- a/sdk/core/azure-core/inc/azure/core/context.hpp +++ b/sdk/core/azure-core/inc/azure/core/context.hpp @@ -200,7 +200,7 @@ namespace Azure { namespace Core { * @brief Check if the context is cancelled. * @return `true` if this context is cancelled, `false` otherwise. */ - bool IsCancelled() const { return GetDeadline() < std::chrono::system_clock::now(); } + bool IsCancelled() const noexcept { return GetDeadline() < std::chrono::system_clock::now(); } /** * @brief Throw an exception if the context was cancelled.