Exiv2::Error Class Reference

Simple error class used for exceptions. An output operator is provided to print errors to a stream. More...

#include <error.hpp>

Inheritance diagram for Exiv2::Error:
[legend]
Collaboration diagram for Exiv2::Error:
[legend]

List of all members.

Public Member Functions

Creators

 Error (int code)
 Constructor taking only an error code.
template<typename A >
EXV_DLLLOCAL Error (int code, const A &arg1)
 Constructor taking an error code and one argument.
template<typename A , typename B >
EXV_DLLLOCAL Error (int code, const A &arg1, const B &arg2)
 Constructor taking an error code and two arguments.
template<typename A , typename B , typename C >
EXV_DLLLOCAL Error (int code, const A &arg1, const B &arg2, const C &arg3)
 Constructor taking an error code and three arguments.
virtual ~Error () throw ()
 Virtual destructor. (Needed because of throw()).
Accessors

virtual int code () const throw ()
 Return the error code.
virtual const char * what () const throw ()
 Return the error message. The pointer returned by what() is valid only as long as the Error object exists.

Detailed Description

Simple error class used for exceptions. An output operator is provided to print errors to a stream.

Examples:

addmoddel.cpp, exifprint.cpp, iptcprint.cpp, and xmpsample.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jul 5 13:41:01 2010 for Exiv2 by  doxygen 1.6.3