You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/xtd.core/include/xtd/threading/lock_recursion_exception.hpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
namespacextd {
11
11
/// @brief The xtd::threading namespace provides classes and interfaces that enable multithreaded programming. In addition to classes for synchronizing thread activities and access to data ( xtd::threading::mutex, xtd::threading::monitor, xtd::threading::interlocked, xtd::threading::auto_reset_event, and so on), this namespace includes a xtd::threading::thread_pool class that allows you to use a pool of system-supplied threads, and a xtd::threading::timer class that executes callback methods on thread pool threads.
12
12
namespacethreading {
13
-
/// @brief The exception that is thrown when a Thread is in an invalid ThreadState for the method call.
13
+
/// @brief The exception that is thrown when recursive entry into a lock is not compatible with the recursion policy for the lock.
14
14
/// ```cpp
15
15
/// class lock_recursion_exception : public xtd::system_exception
throws(exception_case, (exception_case == exception_case::format_not_iformatable ? string::format("The `{0}` type does not inherit from `xtd::iformat` or the specialisation for the `{0}` type in the `xtd::to_string` specialisation method does not exist.", typeof_(type).full_name()) : typeof_(type).full_name()).c_str(), location);
123
+
if (exception_case == exception_case::format_not_iformatable)
124
+
throws(exception_case, string::format("The `{0}` type does not inherit from `xtd::iformat` or the specialisation for the `{0}` type in the `xtd::to_string` specialisation method does not exist.", typeof_(type).full_name()).c_str(), location);
125
+
throw argument_exception {"This overload can only be used with the xtd::helpers::exception_case::format_not_iformatable value."};
0 commit comments