Exiv2
Classes | Namespaces | Defines | Typedefs | Functions

error.hpp File Reference

Error class for exceptions, log message class. More...

#include "types.hpp"
#include <exception>
#include <string>
#include <iosfwd>
#include <sstream>
Include dependency graph for error.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  Exiv2::LogMsg
 Class for a log message, used by the library. Applications can set the log level and provide a customer log message handler (callback function). More...
class  Exiv2::AnyError
 Error class interface. Allows the definition and use of a hierarchy of error classes which can all be handled in one catch block. Inherits from the standard exception base-class, to make life easier for library users (they have the option of catching most things via std::exception). More...
class  Exiv2::BasicError< charT >
 Simple error class used for exceptions. An output operator is provided to print errors to a stream. More...

Namespaces

namespace  Exiv2
 

Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of the objects of this namespace.


Defines

#define EXV_DEBUG   LogMsg(LogMsg::debug)
 Shorthand for a debug log message object.
#define EXV_INFO   LogMsg(LogMsg::info)
 Shorthand for an info log message object.
#define EXV_WARNING   LogMsg(LogMsg::warn)
 Shorthand for a warning log message object.
#define EXV_ERROR   LogMsg(LogMsg::error)
 Shorthand for an error log message object.

Typedefs

typedef BasicError< char > Exiv2::Error
 Error class used for exceptions (std::string based)

Functions

template<typename charT , typename T >
std::basic_string< charT > Exiv2::toBasicString (const T &arg)
 Generalised toString function.
std::ostream & Exiv2::operator<< (std::ostream &os, const AnyError &error)
 AnyError output operator
const char * Exiv2::errMsg (int code)
 Return the error message for the error with code code.

Detailed Description

Error class for exceptions, log message class.

Version:
Rev:
2455
Author:
Andreas Huggel (ahu) ahuggel@gmx.net
Date:
15-Jan-04, ahu: created
11-Feb-04, ahu: isolated as a component
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines