xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::json::decoder::Exception Class Referenceabstract

Mixin class for exceptions that occurred in a JSON document. More...

#include <json/decoder/Errors.hpp>

Public Member Functions

 Exception ()=delete
 this class is not user constructible
 
virtual ~Exception ()=0
 Virtueller destructor.
 
auto what () const noexcept -> const char *
 Returns the explanatory string.
 
virtual auto upcast () const -> const std::exception &=0
 Upcasts this object to an std::exception.
 
virtual auto upcast () -> std::exception &=0
 Upcasts this object to an std::exception.
 

Detailed Description

Mixin class for exceptions that occurred in a JSON document.

This class is not user constructible. Use throwWithLocation() or throwNestedWithLocation() to throw exceptions derived from this class.

Constructor & Destructor Documentation

◆ Exception()

xentara::utils::json::decoder::Exception::Exception ( )
delete

this class is not user constructible

◆ ~Exception()

Exception::~Exception ( )
pure virtualdefault

Virtueller destructor.

Member Function Documentation

◆ upcast() [1/2]

virtual auto xentara::utils::json::decoder::Exception::upcast ( ) -> std::exception &
pure virtual

Upcasts this object to an std::exception.

◆ upcast() [2/2]

virtual auto xentara::utils::json::decoder::Exception::upcast ( ) const -> const std::exception &
pure virtual

Upcasts this object to an std::exception.

◆ what()

auto xentara::utils::json::decoder::Exception::what ( ) const -> const char *
noexcept

Returns the explanatory string.