parcel 0.2.2
Wrappable, wire-transferable C++23 value system with JSON serialization
Loading...
Searching...
No Matches
parcel::ParcelException Class Reference

Base class for parcel deserialization exceptions. More...

#include <error.h>

Inheritance diagram for parcel::ParcelException:

Public Member Functions

ParcelError to_error () const
 Project to a ParcelError value (used by try_* adapters).
 

Detailed Description

Base class for parcel deserialization exceptions.

Inherits std::runtime_error so existing catch(std::runtime_error&) and EXPECT_THROW(..., std::runtime_error) continue to work; adds a structured ParcelError::Code plus optional kind / field tags so the non-throwing try_* API can faithfully translate the exception into a ParcelError without losing granularity.


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