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

Allocation-free error; message borrows a static string literal. More...

#include <style.hpp>

Public Member Functions

std::string_view propertyName () const noexcept

Public Attributes

TreeError cause {TreeError::INVALID_ARGUMENT}
 Tree/validation/allocation failure category.
std::size_t line {1}
 One-based PSS line, or one for typed/tree errors.
std::size_t column {1}
 One-based byte column, or one for typed/tree errors.
std::string_view message
 Static diagnostic; never borrows source input.
const char * property {}
 Null or a library static null-terminated property identity for a failed literal preparation.
std::uint64_t layerId {}
 Failing resident/candidate layer identity; zero for legacy or typed sources.

Detailed Description

Allocation-free error; message borrows a static string literal.

Member Function Documentation

◆ propertyName()

std::string_view portals::StyleError::propertyName ( ) const
inlinenoexcept
Returns
Static property name, or an empty view when the error has no property identity.

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