Public Member Functions | |
general_exception () noexcept=default | |
~general_exception () override=default | |
const char * | what () const noexcept override |
virtual std::ostream & | print (std::ostream &os) const |
The following defines a general exception used in Bareflank. This should not be thrown and instead, an exception that inherits from this should be thrown that provides more decent output. This exception type can however be inherited from, and caught. There are two main reasons why this exception is used instead of using std::exception directly:
Definition at line 57 of file exception.h.
|
defaultnoexcept |
Default Constructor
|
overridedefault |
Destructor
|
inlineoverridenoexcept |
What
Returns a description of the exception. This function provides a simple means for unit testing to identify which exception was thrown, while still being able to support catching STL exceptions as well. This should not be used directly. Instead, use the stream operator.
Definition at line 76 of file exception.h.
|
inlinevirtual |
Reimplemented in bfn::invalid_vmm_state_error, bfn::unknown_status_error, bfn::corrupt_vmm_error, bfn::ioctl_failed_error, bfn::driver_inaccessible_error, bfn::invalid_file_error, bfn::missing_argument_error, bfn::unknown_vmcall_data_type_error, bfn::unknown_vmcall_string_type_error, bfn::unknown_vmcall_type_error, and bfn::unknown_command_error.
Definition at line 81 of file exception.h.