Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::PssError Struct Reference

Allocation-free error owning its bounded subject; message always has static lifetime. More...

#include <pss_data.hpp>

Public Member Functions

constexpr std::string_view subjectView () const noexcept

Public Attributes

TreeError cause {TreeError::INVALID_ARGUMENT}
 Validation or runtime allocation category.
PssErrorCode code {PssErrorCode::NONE}
 Specific parser/admission failure.
PssLocation location
 Original byte coordinates, or identity coordinates for identity validation.
std::array< char, MAX_PSS_ERROR_SUBJECT_BYTES > subject {}
 Owned ASCII subject; non-ASCII bytes become '?'.
std::size_t subjectSize {}
 Populated subject bytes, without a terminator requirement.
bool subjectTruncated {}
 Subject exceeded the fixed owning capacity.
std::string_view message
 Static English explanation, never a source view.

Detailed Description

Allocation-free error owning its bounded subject; message always has static lifetime.

Member Function Documentation

◆ subjectView()

std::string_view portals::PssError::subjectView ( ) const
inlineconstexprnoexcept
Returns
Borrowed subject bytes owned by this error, valid until its mutation or destruction.

The documentation for this struct was generated from the following file: