Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
AwaitError.h
1// Copyright (c) Stefano Cristiano
2// SPDX-License-Identifier: MIT
3#pragma once
4
5#include "../Common/Result.h"
6
7namespace SC
8{
11
14enum class AwaitError : uint32_t
15{
16 Cancelled = 1,
17 WrongEventLoop,
18 AllocatorAlreadyOpen,
19 AllocatorStorageEmpty,
20 AllocatorReservationEmpty,
21 AllocatorReservationFailed,
22 AllocatorCommitFailed,
23 AllocatorHasLiveAllocations,
24 InvalidTask,
25 TaskNotCompleted,
26 TaskNotStarted,
27 TaskAlreadyStarted,
28 TaskCancellationUnavailable,
29 UnhandledException,
30 SocketSendNoProgress,
31 SocketReceiveIncomplete,
32 SocketReceiveNoProgress,
33 EmptyReceiveBuffer,
34 ReceiveLineBufferExhausted,
35 FileReadNoProgress,
36 OperationUnsupported,
37 InvalidFileHandle,
38 MissingOutputFile,
39 MissingFile,
40 MissingReadResult,
41 InvalidFileSystemOperation,
42 TaskGroupStorageFull,
43 TaskGroupResultStorageTooSmall = 29,
44 InactiveTask,
45 TaskGroupEmpty,
46 TaskAlreadyAwaited,
47 RegistryStorageFull = 34,
48 RegistryEmpty = 36,
49 TaskTimedOut = 38,
50 InvalidWorkCallback,
51};
52
54static constexpr ResultCategory AwaitResultCategory = ResultCategory(15);
55
57} // namespace SC
AwaitError
Stable portable failures owned by Await.
Definition AwaitError.h:15