Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
log_file_error.hpp
1// Copyright (c) 2026 ttldtor.
2// SPDX-License-Identifier: BSL-1.0
3#pragma once
4
5#include <cstdint>
6
7namespace portals {
20
29
36} // namespace portals
Public Portals API.
Definition action.hpp:8
FileLogError
File-specific failures; diagnostics retain native codes without allocating messages.
Definition log_file_error.hpp:9
@ METADATA_FAILED
File identity or byte extent could not be read.
Definition log_file_error.hpp:13
@ OPEN_FAILED
Opening the owned path failed.
Definition log_file_error.hpp:11
@ READ_FAILED
Native positioned read failed.
Definition log_file_error.hpp:12
@ RECORD_TOO_LONG
A complete record cannot be found within maxRecordBytes.
Definition log_file_error.hpp:14
@ FILE_CHANGED
Truncation or rotation invalidated the requested generation.
Definition log_file_error.hpp:16
@ INVALID_ARGUMENT
Invalid option, offset, pattern or buffer size.
Definition log_file_error.hpp:10
@ NO_MEMORY
Allocation failed at a runner exception boundary.
Definition application.hpp:33
@ CANCELLED
Explicit cancellation or replacement stopped the invocation.
Definition async.hpp:29
@ INVALID_ARGUMENT
Empty task, callback or immutable data owner, or invalid policy.
Definition async.hpp:26
FileLogOperation
Operation that produced a fixed native diagnostic.
Definition log_file_error.hpp:22
@ SEARCH
Search a bounded byte chunk.
Definition log_file_error.hpp:27
@ READ
Read a bounded range or record.
Definition log_file_error.hpp:26
@ METADATA
Obtain file identity and byte extent.
Definition log_file_error.hpp:25
@ INVALID_UTF8
Invalid UTF-8 sequence anywhere in strict input.
Definition pss_data.hpp:162
@ CREATE
Validate options and construct the application and its core services.
Definition application.hpp:16
@ OPEN
Enter a run and initialize its transport and runner state.
Definition application.hpp:17
Copyable diagnostic; nativeCode is errno/GetLastError for native failures, otherwise zero.
Definition log_file_error.hpp:31
std::uint32_t nativeCode
Unmodified native error code.
Definition log_file_error.hpp:33
FileLogError error
Semantic failure.
Definition log_file_error.hpp:32
FileLogOperation operation
Exact failing operation.
Definition log_file_error.hpp:34