Fawkes API  Fawkes Development Version
fawkes::CouldNotOpenFileException Class Reference

File could not be opened. More...

#include <>>

Inheritance diagram for fawkes::CouldNotOpenFileException:

Public Member Functions

 CouldNotOpenFileException (const char *filename, int errnum, const char *additional_msg=0) throw ()
 Constructor with error number. More...
 
 CouldNotOpenFileException (const char *filename, const char *additional_msg=0) throw ()
 Constructor with error number. More...
 
- Public Member Functions inherited from fawkes::Exception
 Exception (const char *format,...) throw ()
 Constructor. More...
 
 Exception (int errnoval, const char *format,...) throw ()
 Constructor. More...
 
 Exception (const Exception &exc) throw ()
 Copy constructor. More...
 
virtual ~Exception () throw ()
 Destructor. More...
 
virtual void raise ()
 This can be used to throw this exception. More...
 
void prepend (const char *format,...) throw ()
 Prepend messages to the message list. More...
 
void append (const char *format,...) throw ()
 Append messages to the message list. More...
 
void append_va (const char *format, va_list va) throw ()
 Append messages to the message list. More...
 
void append (const Exception &e) throw ()
 Append message that are from another Exception. More...
 
void print_trace () throw ()
 Prints trace to stderr. More...
 
void print_backtrace () const throw ()
 Prints a backtrace. More...
 
char * generate_backtrace () const throw ()
 Generate backtrace string. More...
 
int get_errno () throw ()
 Get errno. More...
 
void set_type_id (const char *id)
 Set exception type ID. More...
 
const char * type_id () const
 Get type ID. More...
 
virtual const char * what () const throw ()
 Get primary string. More...
 
virtual const char * what_no_backtrace () const throw ()
 Get primary string (does not implicitly print the back trace). More...
 
Exceptionoperator= (const Exception &exc) throw ()
 Assign an Exception. More...
 
iterator begin () throw ()
 Get iterator for messages. More...
 
iterator end () throw ()
 Get end iterator for messages. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fawkes::Exception
 Exception () throw ()
 Constructor for subclasses. More...
 
void append_nolock (const char *format,...) throw ()
 Append messages without lock. More...
 
void append_nolock_va (const char *format, va_list va) throw ()
 Append messages without lock by formatted string. More...
 
void append_nolock_nocopy (char *msg) throw ()
 Append message without copying. More...
 
void prepend_nolock_va (const char *format, va_list va) throw ()
 Prepend messages without lock by formatted string. More...
 
void copy_messages (const Exception &exc) throw ()
 Copy messages from given exception. More...
 
- Protected Attributes inherited from fawkes::Exception
message_list_tmessages
 List of messages. More...
 
message_list_tmessages_iterator
 Iterator to iterate over messages. More...
 
message_list_tmessages_end
 Pointer that points to the very last message. More...
 
Mutexmessages_mutex
 Mutex to protect operations on messages list. More...
 
int _errno
 Error number, should be used if the error was caused by a method that supplies errno. More...
 

Detailed Description

File could not be opened.

The file could not be opened. Optional error number and message describe the problem in more detai.

Definition at line 53 of file system.h.

Constructor & Destructor Documentation

◆ CouldNotOpenFileException() [1/2]

fawkes::CouldNotOpenFileException::CouldNotOpenFileException ( const char *  filename,
int  errnum,
const char *  additional_msg = 0 
)
throw (
)

Constructor with error number.

Parameters
filenamename of file which could not be opened
errnumerror number
additional_msgoptional additional message

Definition at line 118 of file system.cpp.

◆ CouldNotOpenFileException() [2/2]

fawkes::CouldNotOpenFileException::CouldNotOpenFileException ( const char *  filename,
const char *  additional_msg = 0 
)
throw (
)

Constructor with error number.

Parameters
filenamename of file which could not be opened
additional_msgoptional additional message

Definition at line 131 of file system.cpp.


The documentation for this class was generated from the following files: