Data Structures | Namespaces | Macros | Functions
exception.h File Reference

Go to the source code of this file.

Data Structures

class  bfn::general_exception
 
class  bfn::unknown_command_error
 
class  bfn::unknown_vmcall_type_error
 
class  bfn::unknown_vmcall_string_type_error
 
class  bfn::unknown_vmcall_data_type_error
 
class  bfn::missing_argument_error
 
class  bfn::invalid_file_error
 
class  bfn::driver_inaccessible_error
 
class  bfn::ioctl_failed_error
 
class  bfn::corrupt_vmm_error
 
class  bfn::unknown_status_error
 
class  bfn::invalid_vmm_state_error
 

Namespaces

 bfn
 

Macros

#define unknown_command(a)   bfn::unknown_command_error(a)
 
#define unknown_vmcall_type(a)   bfn::unknown_vmcall_type_error(a)
 
#define unknown_vmcall_string_type(a)   bfn::unknown_vmcall_string_type_error(a)
 
#define unknown_vmcall_data_type(a)   bfn::unknown_vmcall_data_type_error(a)
 
#define missing_argument()   bfn::missing_argument_error()
 
#define invalid_file(a)   bfn::invalid_file_error(a)
 
#define driver_inaccessible(a)   bfn::driver_inaccessible_error(a)
 
#define ioctl_failed(a)   bfn::ioctl_failed_error(#a)
 
#define corrupt_vmm()   bfn::corrupt_vmm_error()
 
#define unknown_status()   bfn::unknown_status_error()
 
#define invalid_vmm_state(a)   bfn::invalid_vmm_state_error(a)
 

Functions

std::ostream & operator<< (std::ostream &os, const bfn::general_exception &ge)
 

Macro Definition Documentation

◆ unknown_command

#define unknown_command (   a)    bfn::unknown_command_error(a)

Definition at line 130 of file exception.h.

◆ unknown_vmcall_type

#define unknown_vmcall_type (   a)    bfn::unknown_vmcall_type_error(a)

Definition at line 150 of file exception.h.

◆ unknown_vmcall_string_type

#define unknown_vmcall_string_type (   a)    bfn::unknown_vmcall_string_type_error(a)

Definition at line 170 of file exception.h.

◆ unknown_vmcall_data_type

#define unknown_vmcall_data_type (   a)    bfn::unknown_vmcall_data_type_error(a)

Definition at line 190 of file exception.h.

◆ missing_argument

#define missing_argument ( )    bfn::missing_argument_error()

Definition at line 203 of file exception.h.

◆ invalid_file

#define invalid_file (   a)    bfn::invalid_file_error(a)

Definition at line 223 of file exception.h.

◆ driver_inaccessible

#define driver_inaccessible (   a)    bfn::driver_inaccessible_error(a)

Definition at line 242 of file exception.h.

◆ ioctl_failed

#define ioctl_failed (   a)    bfn::ioctl_failed_error(#a)

Definition at line 262 of file exception.h.

◆ corrupt_vmm

#define corrupt_vmm ( )    bfn::corrupt_vmm_error()

Definition at line 275 of file exception.h.

◆ unknown_status

#define unknown_status ( )    bfn::unknown_status_error()

Definition at line 288 of file exception.h.

◆ invalid_vmm_state

#define invalid_vmm_state (   a)    bfn::invalid_vmm_state_error(a)

Definition at line 308 of file exception.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const bfn::general_exception ge 
)
inline

General Exception Stream

Used to print out a description of a thrown exception. This should be used instead of "what()" for general exceptions."

try
{
}
{
std::cerr << ge << std::endl;
}

Definition at line 106 of file exception.h.