ErrorException class
Carries a Win32 error out of code that has no error return.
- Use
import ThinkMeta.ConcurrentTasks.Windows.Error;- Namespace
ThinkMeta::ConcurrentTasks::Windows
Syntax
class ErrorExceptionRemarks
With C++ exceptions enabled Throw throws it; without them (/EHs- etc., as in the CRT-free core) Throw ends the process. In code that cannot pass exceptions on (noexcept functions, such as most of the library) ThrowIfFailed ends the process: there it is a fail-fast check.
Constructors
ErrorException
Constructs the exception for errorCode.
Syntax
explicit ErrorException(ErrorCode errorCode) noexcept;Parameters
errorCodeErrorCode- The Win32 error code to carry; normally not
Error::Success.
Methods
GetErrorCode
Throw
Throws an ErrorException for errorCode.
Syntax
[[noreturn]] static void Throw(ErrorCode errorCode);Parameters
errorCodeErrorCode- The Win32 error code the exception carries.
Remarks
Built without exceptions, it ends the process instead.
See also
ThrowIfFailed
Calls Throw unless the code is Error::Success.
Syntax
static void ThrowIfFailed(ErrorCode errorCode);Parameters
errorCodeErrorCode- The Win32 error code to check.
Generated from ThinkMeta.ConcurrentTasks.API @ 137ec1d (2026-10-17).