Class constrain_error

Synopsis

#include <include/type_safe/constrained_type.hpp>

class constrain_error : public std::logic_error

Description

The exception class thrown by the [ts::throwing_verifier]().

Inheritance

Ancestors: std::logic_error

Methods

constrain_error

Source

Lines 40-46 in include/type_safe/constrained_type.hpp.

class constrain_error : public std::logic_error
{
public:
    constrain_error()
    : std::logic_error("Constraint of type_safe::constrained_type wasn't fulfilled")
    {}
};





Add Discussion as Guest

Log in