xtd 0.2.0
Loading...
Searching...
No Matches
thread_interrupted_exception.h
Go to the documentation of this file.
1
4#pragma once
5#include "../system_exception.h"
6
8namespace xtd {
10 namespace threading {
25 public:
27
67 explicit thread_interrupted_exception(const xtd::string& message, const std::exception& inner_exception, const std::error_code& error, const xtd::diagnostics::stack_frame& info = xtd::diagnostics::stack_frame::empty()) : system_exception(message, inner_exception, error, info) {}
82
87
88 private:
89 const char* default_message() const noexcept {return "Thread was in an invalid state for the operation being executed."_t;}
90 };
91 }
92}
93
106#define thread_interrupted_exception_(...) thread_interrupted_exception(add_csf_(__VA_ARGS__))
Represents text as a sequence of character units.
Definition basic_string.h:79
static stack_frame empty() noexcept
Return an empty stack frame.
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:40
virtual const xtd::string & help_link() const noexcept
Gets a link to the help file associated with this exception.
virtual exception_ref inner_exception() const noexcept
Gets the exception instance that caused the current exception.
virtual const xtd::string & message() const noexcept
Gets message associate to the exception.
Defines the base class for predefined exceptions in the xtd namespace.
Definition system_exception.h:24
thread_interrupted_exception(const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:32
thread_interrupted_exception(const xtd::string &message, const std::error_code &error, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:41
thread_interrupted_exception(const xtd::string &message, const std::exception &inner_exception, const xtd::string &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:73
thread_interrupted_exception(const xtd::string &message, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:36
thread_interrupted_exception(const xtd::string &message, const std::exception &inner_exception, const std::error_code &error, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:67
thread_interrupted_exception(const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:56
thread_interrupted_exception(const xtd::string &message, const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:61
thread_interrupted_exception(const xtd::string &message, const xtd::string &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:46
thread_interrupted_exception(const xtd::string &message, const std::exception &inner_exception, const std::error_code &error, const xtd::string &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:80
thread_interrupted_exception(const xtd::string &message, const std::error_code &error, const xtd::string &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class thread_interrupted_exception.
Definition thread_interrupted_exception.h:51
The exception that is thrown when a Thread is interrupted while it is in a waiting state.
Definition thread_interrupted_exception.h:24
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10