Parsnip
parsing library
Loading...
Searching...
No Matches
Public Member Functions
Parsnip::SchemaConflict Class Reference

Parsing/command patterns produce schema inconsistency. More...

#include <parsnip.h>

Inheritance diagram for Parsnip::SchemaConflict:
Parsnip::Exception

Public Member Functions

 SchemaConflict (const std::string &reason)
 
 SchemaConflict (const std::string &reason, const class SchemaBase &from, const class SchemaBase &into)
 Construct as schema conflict exception, and log details of the conflict to stderr.
 
- Public Member Functions inherited from Parsnip::Exception
virtual const char * what () const noexcept override
 
const char * where () const noexcept
 Retrieve the exception location information.
 
void addBacktraceLocation (const std::string &)
 Insert a new portion of the exception location at the front.
 

Additional Inherited Members

- Protected Member Functions inherited from Parsnip::Exception
 Exception (const std::string &why)
 Construct an exception.
 
 Exception (const std::string &why, const std::string &detail)
 Construct an exception.
 
- Protected Attributes inherited from Parsnip::Exception
std::string reason
 Storage for the exception explanation.
 

Detailed Description

Parsing/command patterns produce schema inconsistency.

Constructor & Destructor Documentation

◆ SchemaConflict()

Parsnip::SchemaConflict::SchemaConflict ( const std::string &  reason,
const class SchemaBase from,
const class SchemaBase into 
)

Construct as schema conflict exception, and log details of the conflict to stderr.

Parameters
reasonDetails explaining the conflict.
fromThe schema being merged from.
intoThe schema being merged into.

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