CBMC
|
Thrown when a goto program that's being processed is in an invalid format, for example passing the wrong number of arguments to functions. More...
#include <exception_utils.h>
Public Member Functions | |
incorrect_goto_program_exceptiont (std::string message) | |
template<typename Diagnostic , typename... Diagnostics> | |
incorrect_goto_program_exceptiont (std::string message, Diagnostic &&diagnostic, Diagnostics &&... diagnostics) | |
template<typename... Diagnostics> | |
incorrect_goto_program_exceptiont (std::string message, source_locationt source_location, Diagnostics &&... diagnostics) | |
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 |
virtual | ~cprover_exception_baset ()=default |
Private Attributes | |
source_locationt | source_location |
std::string | diagnostics |
Additional Inherited Members | |
Protected Member Functions inherited from cprover_exception_baset | |
cprover_exception_baset (std::string reason) | |
This constructor is marked protected to ensure this class isn't used directly. More... | |
cprover_exception_baset (std::string reason) | |
This constructor is marked protected to ensure this class isn't used directly. More... | |
Protected Attributes inherited from cprover_exception_baset | |
std::string | reason |
The reason this exception was generated. More... | |
Thrown when a goto program that's being processed is in an invalid format, for example passing the wrong number of arguments to functions.
Note that this only applies to goto programs that are user provided, that internal transformations on goto programs don't produce invalid programs should be guarded by invariants instead.
Definition at line 91 of file exception_utils.h.
|
explicit |
Definition at line 52 of file exception_utils.cpp.
incorrect_goto_program_exceptiont::incorrect_goto_program_exceptiont | ( | std::string | message, |
Diagnostic && | diagnostic, | ||
Diagnostics &&... | diagnostics | ||
) |
Definition at line 117 of file exception_utils.h.
incorrect_goto_program_exceptiont::incorrect_goto_program_exceptiont | ( | std::string | message, |
source_locationt | source_location, | ||
Diagnostics &&... | diagnostics | ||
) |
Definition at line 130 of file exception_utils.h.
|
overridevirtual |
A human readable description of what went wrong.
For readability, implementors should not add a leading or trailing newline to this description.
Reimplemented from cprover_exception_baset.
Definition at line 59 of file exception_utils.cpp.
|
private |
Definition at line 113 of file exception_utils.h.
|
private |
Definition at line 111 of file exception_utils.h.