Exiv2::BasicError< charT > Class Template 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::BasicError< charT >:

Public Member Functions

template<typename A >
 BasicError (int code, const A &arg1)
 
template<typename A , typename B >
 BasicError (int code, const A &arg1, const B &arg2)
 
template<typename A , typename B , typename C >
 BasicError (int code, const A &arg1, const B &arg2, const C &arg3)
 
Creators
EXV_DLLLOCAL BasicError (int code)
 Constructor taking only an error code.
 
template<typename A >
EXV_DLLLOCAL BasicError (int code, const A &arg1)
 Constructor taking an error code and one argument.
 
template<typename A , typename B >
EXV_DLLLOCAL BasicError (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 BasicError (int code, const A &arg1, const B &arg2, const C &arg3)
 Constructor taking an error code and three arguments.
 
virtual EXV_DLLLOCAL ~BasicError () throw ()
 Virtual destructor. (Needed because of throw())
 
Accessors
virtual EXV_DLLLOCAL int code () const throw ()
 Return the error code.
 
virtual EXV_DLLLOCAL const char * what () const throw ()
 Return the error message as a C-string. The pointer returned by what() is valid only as long as the BasicError object exists.
 
- Public Member Functions inherited from Exiv2::AnyError
virtual ~AnyError () throw ()
 Virtual destructor.
 

Detailed Description

template<typename charT>
class Exiv2::BasicError< charT >

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

Examples:
addmoddel.cpp, exifprint.cpp, and xmpsample.cpp.

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