KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::psi::File_format_exception Class Reference

#include <psi_exception.h>

Inheritance diagram for kjb::psi::File_format_exception:
kjb::IO_error kjb::Exception

Public Member Functions

 File_format_exception (const char *file, uint32_t line)
 
 File_format_exception (const char *msg, const char *file=0, uint32_t line=0)
 
 File_format_exception (const std::string &msg, const char *file=0, uint32_t line=0)
 
virtual ~File_format_exception ()
 
- Public Member Functions inherited from kjb::IO_error
 IO_error (const char *file, unsigned line)
 Constructs an Exception caused by an IO error. More...
 
 IO_error (const char *msg, const char *file=0, unsigned line=0)
 Constructs an Exception caused by an IO error. More...
 
 IO_error (const std::string &msg, const char *file=0, unsigned line=0)
 Constructs an Exception caused by an IO error. More...
 
virtual ~IO_error () throw ()
 Deletes an IO error. More...
 
- Public Member Functions inherited from kjb::Exception
 Exception (const char *msg, const char *file=0, unsigned line=0)
 Constructs an Exception. More...
 
 Exception (const std::string &msg, const char *file=0, unsigned line=0)
 Constructs an Exception. More...
 
 Exception (const Exception &e)
 Constructs an Exception from another. More...
 
virtual ~Exception () throw ()
 Deletes an Exception. More...
 
const std::string & get_msg () const throw ()
 Returns the error message for the Exception. More...
 
const char * what () const throw ()
 Returns the error message for the Exception. More...
 
const char * get_file () const
 Returns the file name where the Exception occurred. More...
 
unsigned get_line () const
 Returns the line number near where the Exception occurred. More...
 
std::string get_details () const
 Return string containing filename, line number, and message. More...
 
virtual void print (std::ostream &out, bool newline=false) const
 Prints the Exception::msg to an ostream. More...
 
virtual void print () const
 
virtual void print_details (std::ostream &out, bool newline=false) const
 Prints all the fields of the Exception to an ostream. More...
 
virtual void print_details () const
 
virtual void print_abort (std::ostream &out, bool newline=false) const
 Prints the Exception::msg to an ostream and aborts. More...
 
virtual void print_abort () const
 
virtual void print_details_abort (std::ostream &out, bool newline=false) const
 Prints all the fields of the Exception to an ostream and aborts. More...
 
virtual void print_details_abort () const
 
virtual void print_exit (std::ostream &out, bool newline, int status=false) const
 Prints the Exception::msg to an ostream and exits. More...
 
virtual void print_exit () const
 
virtual void print_details_exit (std::ostream &out, bool newline=false, int status=EXIT_FAILURE) const
 Prints all the fields of the Exception to an ostream and exits. More...
 
virtual void print_details_exit () const
 

Additional Inherited Members

- Protected Attributes inherited from kjb::Exception
std::string m_msg
 Message associated with the error causing the exception. More...
 
const char * m_file
 File name where the Error occurred. More...
 
unsigned m_line
 Line number where the Error occurred. More...
 

Constructor & Destructor Documentation

kjb::psi::File_format_exception::File_format_exception ( const char *  file,
uint32_t  line 
)
inline
kjb::psi::File_format_exception::File_format_exception ( const char *  msg,
const char *  file = 0,
uint32_t  line = 0 
)
inline
kjb::psi::File_format_exception::File_format_exception ( const std::string &  msg,
const char *  file = 0,
uint32_t  line = 0 
)
inline
virtual kjb::psi::File_format_exception::~File_format_exception ( )
inlinevirtual

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