ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
CircuitException Class Reference

Exception type thrown by circuit operations on invalid input. More...

#include "Circuit.h"

Inheritance diagram for CircuitException:
Collaboration diagram for CircuitException:

Public Member Functions

 CircuitException (const std::string &m)
 Construct with a descriptive error message.
 
virtual char const * what () const noexcept
 Return the error message as a C-string.
 

Private Attributes

std::string message
 Human-readable description of the error.
 

Detailed Description

Exception type thrown by circuit operations on invalid input.

Thrown when, for example, a UUID is not found in the circuit or a type constraint is violated.

Definition at line 204 of file Circuit.h.

Constructor & Destructor Documentation

◆ CircuitException()

CircuitException::CircuitException ( const std::string &  m)
inline

Construct with a descriptive error message.

Parameters
mError message string.

Definition at line 213 of file Circuit.h.

Member Function Documentation

◆ what()

virtual char const * CircuitException::what ( ) const
inlinevirtualnoexcept

Return the error message as a C-string.

Returns
Null-terminated error description.

Definition at line 219 of file Circuit.h.

Here is the caller graph for this function:

Member Data Documentation

◆ message

std::string CircuitException::message
private

Human-readable description of the error.

Definition at line 206 of file Circuit.h.


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