9#ifndef CPROVER_UTIL_EXCEPTION_UTILS_H
10#define CPROVER_UTIL_EXCEPTION_UTILS_H
33 virtual std::string
what()
const;
67 template <
typename E,
typename T>
68 friend std::enable_if_t<
69 std::is_base_of<cprover_exception_baset, std::decay_t<E>>::value,
78template <
typename E,
typename T>
80 std::is_base_of<cprover_exception_baset, std::decay_t<E>>::value,
85 return std::forward<E>(e);
105 std::string
what()
const override;
137 template <
typename Diagnostic,
typename... Diagnostics>
140 Diagnostic &&diagnostic,
143 template <
typename... Diagnostics>
149 std::string
what()
const override;
157template <
typename Diagnostic,
typename... Diagnostics>
160 Diagnostic &&diagnostic,
165 std::forward<Diagnostic>(diagnostic),
170template <
typename... Diagnostics>
218 std::string
what()
const override;
analysis_exceptiont(std::string reason)
std::ostringstream _reason
The reason this exception was generated.
virtual std::string what() const
A human readable description of what went wrong.
friend std::enable_if_t< std::is_base_of< cprover_exception_baset, std::decay_t< E > >::value, E && > operator<<(E &&, const T &)
add to the diagnostic information in the given cprover_exception_baset exception; the type of the exc...
std::string reason() const
cprover_exception_baset(cprover_exception_baset &&)=default
virtual ~cprover_exception_baset()=default
cprover_exception_baset()=default
cprover_exception_baset(std::string reason)
This constructor is marked protected to ensure this class isn't used directly.
std::string reason
The reason this exception was generated.
cprover_exception_baset(const cprover_exception_baset &src)
deserialization_exceptiont(std::string message)
source_locationt source_location
incorrect_goto_program_exceptiont(std::string message)
std::string what() const override
A human readable description of what went wrong.
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.
std::string correct_input
In case we have samples of correct input to the option.
std::string option
The full command line option (not the argument) that got erroneous input.
const source_locationt & get_source_location() const
std::string what() const override
A human readable description of what went wrong.
std::string get_reason() const
invalid_source_file_exceptiont(std::string reason, source_locationt source_location)
source_locationt source_location
system_exceptiont(std::string message)
unsupported_operation_exceptiont(std::string message)
message is the unsupported operation causing this fault to occur.
std::enable_if_t< std::is_base_of< cprover_exception_baset, std::decay_t< E > >::value, E && > operator<<(E &&e, const T &message)
add to the diagnostic information in the given cprover_exception_baset exception; the type of the exc...