Preliminary. ThinkMeta ConcurrentTasks and this documentation are preliminary; everything is subject to change.

API reference / Windows

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

Remarks

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

Returns the Win32 error code the exception carries.

Syntax

ErrorCode GetErrorCode() const noexcept;

Return value

Type: ErrorCode

The code passed to the constructor.

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

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).