pianod2
multisource multiuser scriptable networked music player
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
Parsnip::Exception Class Reference

Class representing issues related to serialization & parsing. More...

#include <parsnip.h>

Inheritance diagram for Parsnip::Exception:
Inheritance graph
[legend]
Collaboration diagram for Parsnip::Exception:
Collaboration graph
[legend]

Public Member Functions

virtual const char * what () const noexcept override
 
const char * where () const noexcept
 Retrieve the exception location information. More...
 
void addBacktraceLocation (const std::string &)
 Insert a new portion of the exception location at the front. More...
 

Protected Member Functions

 Exception (const std::string &why)
 Construct an exception. More...
 
 Exception (const std::string &why, const std::string &detail)
 Construct an exception. More...
 

Protected Attributes

std::string reason
 Storage for the exception explanation. More...
 

Private Attributes

std::string location
 Storage for the exception location. More...
 

Detailed Description

Class representing issues related to serialization & parsing.

Constructor & Destructor Documentation

◆ Exception() [1/2]

Parsnip::Exception::Exception ( const std::string &  why)
inlineprotected

Construct an exception.

◆ Exception() [2/2]

Parsnip::Exception::Exception ( const std::string &  why,
const std::string &  detail 
)
inlineprotected

Construct an exception.

Parameters
whyThe primary explanation for the error.
detailSpecifics about the error, such as the problem location or data.

Member Function Documentation

◆ addBacktraceLocation()

void Parsnip::Exception::addBacktraceLocation ( const std::string &  where)

Insert a new portion of the exception location at the front.

Parameters
whereThe location portion.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ what()

virtual const char* Parsnip::Exception::what ( ) const
inlineoverridevirtualnoexcept
Here is the caller graph for this function:

◆ where()

const char* Parsnip::Exception::where ( ) const
inlinenoexcept

Retrieve the exception location information.

Returns
A string containing location information, or a nullptr if none is available.
Here is the caller graph for this function:

Member Data Documentation

◆ location

std::string Parsnip::Exception::location
private

Storage for the exception location.

◆ reason

std::string Parsnip::Exception::reason
protected

Storage for the exception explanation.


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