EN
RU
Portals
0.7.0 · dev
0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Toggle main menu visibility
Loading...
Searching...
No Matches
pss_file_error.hpp
1
// Copyright (c) 2026 ttldtor.
2
// SPDX-License-Identifier: BSL-1.0
3
#pragma once
4
5
#include <system_error>
6
7
namespace
portals
{
8
10
enum class
PssFileOperation
{
11
OPEN
,
12
READ
,
13
INPUT_LIMIT
14
};
15
21
struct
PssFileError
{
22
PssFileOperation
operation
{
PssFileOperation::OPEN
};
23
std::error_code
cause
{};
24
};
25
26
}
// namespace portals
portals
Public Portals API.
Definition
action.hpp:8
portals::FileLogOperation::READ
@ READ
Read a bounded range or record.
Definition
log_file_error.hpp:26
portals::PssErrorCode::INPUT_LIMIT
@ INPUT_LIMIT
Input bytes exceed the selected budget.
Definition
pss_data.hpp:155
portals::PssFileOperation
PssFileOperation
File boundary that failed before a PSS document could be installed.
Definition
pss_file_error.hpp:10
portals::PssFileOperation::OPEN
@ OPEN
Open the explicitly requested file for reading.
Definition
pss_file_error.hpp:11
portals::ApplicationPhase::OPEN
@ OPEN
Enter a run and initialize its transport and runner state.
Definition
application.hpp:17
portals::PssFileError
Allocation-free original file failure; the owning source identity is stored separately....
Definition
pss_file_error.hpp:21
portals::PssFileError::operation
PssFileOperation operation
Exact failing file boundary.
Definition
pss_file_error.hpp:22
portals::PssFileError::cause
std::error_code cause
Original platform error, or file_too_large for INPUT_LIMIT.
Definition
pss_file_error.hpp:23
include
portals
pss_file_error.hpp