CBMC
|
Thrown when users pass incorrect command line arguments, for example passing no files to analysis or setting two mutually exclusive flags. More...
#include <exception_utils.h>
Public Member Functions | |
invalid_command_line_argument_exceptiont (std::string reason, std::string option, std::string correct_input="") | |
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 | |
std::string | option |
The full command line option (not the argument) that got erroneous input. More... | |
std::string | correct_input |
In case we have samples of correct input to the option. More... | |
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 users pass incorrect command line arguments, for example passing no files to analysis or setting two mutually exclusive flags.
Definition at line 50 of file exception_utils.h.
invalid_command_line_argument_exceptiont::invalid_command_line_argument_exceptiont | ( | std::string | reason, |
std::string | option, | ||
std::string | correct_input = "" |
||
) |
Definition at line 31 of file exception_utils.cpp.
|
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 17 of file exception_utils.cpp.
|
private |
In case we have samples of correct input to the option.
Definition at line 56 of file exception_utils.h.
|
private |
The full command line option (not the argument) that got erroneous input.
Definition at line 54 of file exception_utils.h.