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:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

Accessors
virtual int code () const
 Return the error code.
virtual std::string what () const
 Return the error message. Consider using the output operator operator<<(std::ostream &os, const AnyError& error) instead.

Detailed Description

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

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


Member Function Documentation

virtual std::string Exiv2::Error::what (  )  const [virtual]

Return the error message. Consider using the output operator operator<<(std::ostream &os, const AnyError& error) instead.

Note:
Unlike std::exception::what(), this function returns an std::string.

Implements Exiv2::AnyError.


The documentation for this class was generated from the following file:
Generated on Mon Nov 27 20:16:26 2006 for Exiv2 by  doxygen 1.5.1