<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Exiv2: Exiv2::Error Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.4 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="nav"> <a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1Error.html">Error</a></div> <h1>Exiv2::Error Class Reference</h1><!-- doxytag: class="Exiv2::Error" --><!-- doxytag: inherits="Exiv2::AnyError" -->Simple error class used for exceptions. An output operator is provided to print errors to a stream. <a href="#_details">More...</a> <p> <code>#include <error.hpp></code> <p> <div class="dynheader"> Inheritance diagram for Exiv2::Error:</div> <div class="dynsection"> <p><center><img src="classExiv2_1_1Error__inherit__graph.png" border="0" usemap="#Exiv2_1_1Error__inherit__map" alt="Inheritance graph"></center> <map name="Exiv2_1_1Error__inherit__map"> <area shape="rect" href="classExiv2_1_1AnyError.html" title="Error class interface. Allows the definition and use of a hierarchy of error classes..." alt="" coords="5,82,176,106"><area shape="rect" title="STL class." alt="" coords="11,7,171,31"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for Exiv2::Error:</div> <div class="dynsection"> <p><center><img src="classExiv2_1_1Error__coll__graph.png" border="0" usemap="#Exiv2_1_1Error__coll__map" alt="Collaboration graph"></center> <map name="Exiv2_1_1Error__coll__map"> <area shape="rect" href="classExiv2_1_1AnyError.html" title="Error class interface. Allows the definition and use of a hierarchy of error classes..." alt="" coords="5,172,176,196"><area shape="rect" title="STL class." alt="" coords="11,94,171,118"><area shape="rect" href="structExiv2_1_1ErrMsg.html" title="Helper structure defining an error message." alt="" coords="200,172,352,196"><area shape="rect" title="STL class." alt="" coords="376,172,507,196"><area shape="rect" title="STL class." alt="" coords="305,6,577,30"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classExiv2_1_1Error-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7eb136463081a57eb2b5334d08a30d9c"></a><!-- doxytag: member="Exiv2::Error::Error" ref="7eb136463081a57eb2b5334d08a30d9c" args="(int code)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Error.html#7eb136463081a57eb2b5334d08a30d9c">Error</a> (int code)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor taking only an error code. <br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="c880e4952f42cc0704c8088c4d98c87e"></a><!-- doxytag: member="Exiv2::Error::Error" ref="c880e4952f42cc0704c8088c4d98c87e" args="(int code, const A &arg1)" --> template<typename A> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Error.html#c880e4952f42cc0704c8088c4d98c87e">Error</a> (int code, const A &arg1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor taking an error code and one argument. <br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="43e0d40d13839c0152ee780bb0198011"></a><!-- doxytag: member="Exiv2::Error::Error" ref="43e0d40d13839c0152ee780bb0198011" args="(int code, const A &arg1, const B &arg2)" --> template<typename A, typename B> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Error.html#43e0d40d13839c0152ee780bb0198011">Error</a> (int code, const A &arg1, const B &arg2)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor taking an error code and two arguments. <br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="385973a48be3365e690c524f17260fe0"></a><!-- doxytag: member="Exiv2::Error::Error" ref="385973a48be3365e690c524f17260fe0" args="(int code, const A &arg1, const B &arg2, const C &arg3)" --> template<typename A, typename B, typename C> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Error.html#385973a48be3365e690c524f17260fe0">Error</a> (int code, const A &arg1, const B &arg2, const C &arg3)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor taking an error code and three arguments. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="431faf87c48c4a1ce8d27f9cf0b3cbed"></a><!-- doxytag: member="Exiv2::Error::~Error" ref="431faf87c48c4a1ce8d27f9cf0b3cbed" args="()" --> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Error.html#431faf87c48c4a1ce8d27f9cf0b3cbed">~Error</a> () throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <br></td></tr> <tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4b20c019cdd8dad64859b23bbe8415bd"></a><!-- doxytag: member="Exiv2::Error::code" ref="4b20c019cdd8dad64859b23bbe8415bd" args="() const " --> virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Error.html#4b20c019cdd8dad64859b23bbe8415bd">code</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the error code. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe7383dff1695ffe00c29911b881e9bc"></a><!-- doxytag: member="Exiv2::Error::what" ref="fe7383dff1695ffe00c29911b881e9bc" args="() const " --> virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Error.html#fe7383dff1695ffe00c29911b881e9bc">what</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the error message. The pointer returned by <a class="el" href="classExiv2_1_1Error.html#fe7383dff1695ffe00c29911b881e9bc" title="Return the error message. The pointer returned by what() is valid only as long as...">what()</a> is valid only as long as the <a class="el" href="classExiv2_1_1Error.html" title="Simple error class used for exceptions. An output operator is provided to print errors...">Error</a> object exists. <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Simple error class used for exceptions. An output operator is provided to print errors to a stream. <dl compact><dt><b>Examples: </b></dt><dd> <p> <a class="el" href="addmoddel_8cpp-example.html#_a12">addmoddel.cpp</a>, <a class="el" href="exifprint_8cpp-example.html#_a3">exifprint.cpp</a>, <a class="el" href="iptcprint_8cpp-example.html#_a3">iptcprint.cpp</a>, and <a class="el" href="xmpsample_8cpp-example.html#_a12">xmpsample.cpp</a>.</dl><hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="error_8hpp.html">error.hpp</a></ul> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Feb 5 11:51:03 2008 for Exiv2 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address> </body> </html>