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

Exception thrown when a semiring operation is not supported. More...

#include "Semiring.h"

Inheritance diagram for semiring::SemiringException:
Collaboration diagram for semiring::SemiringException:

Public Member Functions

 SemiringException (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 thrown when a semiring operation is not supported.

Raised by the default implementations of optional operations (cmp, semimod, agg, value) when a subclass does not override them.

Definition at line 44 of file Semiring.h.

Constructor & Destructor Documentation

◆ SemiringException()

semiring::SemiringException::SemiringException ( const std::string &  m)
inline

Construct with a descriptive error message.

Parameters
mError message.

Definition at line 53 of file Semiring.h.

Member Function Documentation

◆ what()

virtual char const * semiring::SemiringException::what ( ) const
inlinevirtualnoexcept

Return the error message as a C-string.

Returns
Null-terminated error description.

Definition at line 59 of file Semiring.h.

Member Data Documentation

◆ message

std::string semiring::SemiringException::message
private

Human-readable description of the error.

Definition at line 46 of file Semiring.h.


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