cprover
function_pointer_restrictionst::invalid_restriction_exceptiont Class Reference

#include <restrict_function_pointers.h>

+ Inheritance diagram for function_pointer_restrictionst::invalid_restriction_exceptiont:
+ Collaboration diagram for function_pointer_restrictionst::invalid_restriction_exceptiont:

Public Member Functions

 invalid_restriction_exceptiont (std::string reason, std::string correct_format="")
 
std::string what () const override
 A human readable description of what went wrong. More...
 
- Public Member Functions inherited from cprover_exception_baset
virtual ~cprover_exception_baset ()=default
 

Public Attributes

std::string reason
 
std::string correct_format
 

Detailed Description

Definition at line 85 of file restrict_function_pointers.h.

Constructor & Destructor Documentation

◆ invalid_restriction_exceptiont()

function_pointer_restrictionst::invalid_restriction_exceptiont::invalid_restriction_exceptiont ( std::string  reason,
std::string  correct_format = "" 
)
explicit

Definition at line 143 of file restrict_function_pointers.cpp.

Member Function Documentation

◆ what()

std::string function_pointer_restrictionst::invalid_restriction_exceptiont::what ( ) const
overridevirtual

A human readable description of what went wrong.

For readability, implementors should not add a leading or trailing newline to this description.

Implements cprover_exception_baset.

Definition at line 150 of file restrict_function_pointers.cpp.

Member Data Documentation

◆ correct_format

std::string function_pointer_restrictionst::invalid_restriction_exceptiont::correct_format

Definition at line 95 of file restrict_function_pointers.h.

◆ reason

std::string function_pointer_restrictionst::invalid_restriction_exceptiont::reason

Definition at line 94 of file restrict_function_pointers.h.


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