<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Audaspace: Exception Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Audaspace  <span id="projectnumber">1.3.0</span> </div> <div id="projectbrief">A high level audio library.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="classException-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">Exception Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>The <a class="el" href="classException.html" title="The Exception class is the general exception base class.">Exception</a> class is the general exception base class. <a href="classException.html#details">More...</a></p> <p><code>#include <<a class="el" href="Exception_8h_source.html">Exception.h</a>></code></p> <div class="dynheader"> Inheritance diagram for Exception:</div> <div class="dyncontent"> <div class="center"><img src="classException__inherit__graph.png" border="0" usemap="#Exception_inherit__map" alt="Inheritance graph"/></div> <map name="Exception_inherit__map" id="Exception_inherit__map"> <area shape="rect" title="The Exception class is the general exception base class." alt="" coords="161,80,242,107"/> <area shape="rect" href="classDeviceException.html" title="The DeviceException class is used for error cases in connection with devices, which usually happens w..." alt="" coords="5,155,125,181"/> <area shape="rect" href="classFileException.html" title="The FileException class is used for error cases in which files cannot be read or written due to unkno..." alt="" coords="150,155,253,181"/> <area shape="rect" href="classStateException.html" title="The StateException class is used for error cases of sounds or readers with illegal states or requirem..." alt="" coords="277,155,390,181"/> <area shape="rect" title=" " alt="" coords="148,5,255,32"/> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:ad6ccad1ce98465e9fdc2c24230dbfca8"><td class="memItemLeft" align="right" valign="top"><a id="ad6ccad1ce98465e9fdc2c24230dbfca8"></a> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#ad6ccad1ce98465e9fdc2c24230dbfca8">~Exception</a> () <a class="el" href="Exception_8h.html#a3a4ff5e1a5656b18b9d99bc2fc1c6b63">AUD_NOEXCEPT</a></td></tr> <tr class="memdesc:ad6ccad1ce98465e9fdc2c24230dbfca8"><td class="mdescLeft"> </td><td class="mdescRight">Destroys the object. <br /></td></tr> <tr class="separator:ad6ccad1ce98465e9fdc2c24230dbfca8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a614290750b40ac6d7fcab144a58696b5"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#a614290750b40ac6d7fcab144a58696b5">what</a> () const <a class="el" href="Exception_8h.html#a3a4ff5e1a5656b18b9d99bc2fc1c6b63">AUD_NOEXCEPT</a></td></tr> <tr class="memdesc:a614290750b40ac6d7fcab144a58696b5"><td class="mdescLeft"> </td><td class="mdescRight">Returns the error message. <a href="#a614290750b40ac6d7fcab144a58696b5">More...</a><br /></td></tr> <tr class="separator:a614290750b40ac6d7fcab144a58696b5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a556fcdcfe0e58e2ef8709adf5d07f5cc"><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#a556fcdcfe0e58e2ef8709adf5d07f5cc">getDebugMessage</a> () const</td></tr> <tr class="memdesc:a556fcdcfe0e58e2ef8709adf5d07f5cc"><td class="mdescLeft"> </td><td class="mdescRight">Returns the error message plus file and line number for debugging purposes. <a href="#a556fcdcfe0e58e2ef8709adf5d07f5cc">More...</a><br /></td></tr> <tr class="separator:a556fcdcfe0e58e2ef8709adf5d07f5cc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acddc608f0463722b5c55d4aa9bf4c20d"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#acddc608f0463722b5c55d4aa9bf4c20d">getMessage</a> () const</td></tr> <tr class="memdesc:acddc608f0463722b5c55d4aa9bf4c20d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the error message. <a href="#acddc608f0463722b5c55d4aa9bf4c20d">More...</a><br /></td></tr> <tr class="separator:acddc608f0463722b5c55d4aa9bf4c20d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8d7803f4034e5da688bbe3dca9715b6a"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#a8d7803f4034e5da688bbe3dca9715b6a">getFile</a> () const</td></tr> <tr class="memdesc:a8d7803f4034e5da688bbe3dca9715b6a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the file in which the exception was thrown. <a href="#a8d7803f4034e5da688bbe3dca9715b6a">More...</a><br /></td></tr> <tr class="separator:a8d7803f4034e5da688bbe3dca9715b6a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:add9b14e9f5a48bdaf05487d6a13378be"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#add9b14e9f5a48bdaf05487d6a13378be">getLine</a> () const</td></tr> <tr class="memdesc:add9b14e9f5a48bdaf05487d6a13378be"><td class="mdescLeft"> </td><td class="mdescRight">Returns the line where the exception was originally thrown. <a href="#add9b14e9f5a48bdaf05487d6a13378be">More...</a><br /></td></tr> <tr class="separator:add9b14e9f5a48bdaf05487d6a13378be"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:afeb97c421adf460c70903ec07b12fcdc"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#afeb97c421adf460c70903ec07b12fcdc">Exception</a> (const <a class="el" href="classException.html">Exception</a> &exception)</td></tr> <tr class="memdesc:afeb97c421adf460c70903ec07b12fcdc"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#afeb97c421adf460c70903ec07b12fcdc">More...</a><br /></td></tr> <tr class="separator:afeb97c421adf460c70903ec07b12fcdc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4ea0d287d4a966ab9361d8a9f9542231"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#a4ea0d287d4a966ab9361d8a9f9542231">Exception</a> (std::string message, std::string file, int line)</td></tr> <tr class="memdesc:a4ea0d287d4a966ab9361d8a9f9542231"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classException.html" title="The Exception class is the general exception base class.">Exception</a> object. <a href="#a4ea0d287d4a966ab9361d8a9f9542231">More...</a><br /></td></tr> <tr class="separator:a4ea0d287d4a966ab9361d8a9f9542231"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr class="memitem:a492fd40f8daf552af168dde3c41a9143"><td class="memItemLeft" align="right" valign="top"><a id="a492fd40f8daf552af168dde3c41a9143"></a> const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#a492fd40f8daf552af168dde3c41a9143">m_message</a></td></tr> <tr class="memdesc:a492fd40f8daf552af168dde3c41a9143"><td class="mdescLeft"> </td><td class="mdescRight">A message describing the problem. <br /></td></tr> <tr class="separator:a492fd40f8daf552af168dde3c41a9143"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a92baabd06360c37494caeb8d2f886899"><td class="memItemLeft" align="right" valign="top"><a id="a92baabd06360c37494caeb8d2f886899"></a> const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#a92baabd06360c37494caeb8d2f886899">m_file</a></td></tr> <tr class="memdesc:a92baabd06360c37494caeb8d2f886899"><td class="mdescLeft"> </td><td class="mdescRight">The source code file in which the exception was thrown. <br /></td></tr> <tr class="separator:a92baabd06360c37494caeb8d2f886899"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acd64e56acaee71be15d822db94f60ae9"><td class="memItemLeft" align="right" valign="top"><a id="acd64e56acaee71be15d822db94f60ae9"></a> const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classException.html#acd64e56acaee71be15d822db94f60ae9">m_line</a></td></tr> <tr class="memdesc:acd64e56acaee71be15d822db94f60ae9"><td class="mdescLeft"> </td><td class="mdescRight">The source code line from which the exception was thrown. <br /></td></tr> <tr class="separator:acd64e56acaee71be15d822db94f60ae9"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>The <a class="el" href="classException.html" title="The Exception class is the general exception base class.">Exception</a> class is the general exception base class. </p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="afeb97c421adf460c70903ec07b12fcdc"></a> <h2 class="memtitle"><span class="permalink"><a href="#afeb97c421adf460c70903ec07b12fcdc">◆ </a></span>Exception() <span class="overload">[1/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">Exception::Exception </td> <td>(</td> <td class="paramtype">const <a class="el" href="classException.html">Exception</a> & </td> <td class="paramname"><em>exception</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Copy constructor. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">exception</td><td>The exception to be copied. </td></tr> </table> </dd> </dl> </div> </div> <a id="a4ea0d287d4a966ab9361d8a9f9542231"></a> <h2 class="memtitle"><span class="permalink"><a href="#a4ea0d287d4a966ab9361d8a9f9542231">◆ </a></span>Exception() <span class="overload">[2/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">Exception::Exception </td> <td>(</td> <td class="paramtype">std::string </td> <td class="paramname"><em>message</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::string </td> <td class="paramname"><em>file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>line</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <a class="el" href="classException.html" title="The Exception class is the general exception base class.">Exception</a> object. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">message</td><td>A message describing the problem. </td></tr> <tr><td class="paramname">file</td><td>The source code file in which the exception was thrown. </td></tr> <tr><td class="paramname">line</td><td>The source code line from which the exception was thrown. </td></tr> </table> </dd> </dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a556fcdcfe0e58e2ef8709adf5d07f5cc"></a> <h2 class="memtitle"><span class="permalink"><a href="#a556fcdcfe0e58e2ef8709adf5d07f5cc">◆ </a></span>getDebugMessage()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual std::string Exception::getDebugMessage </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the error message plus file and line number for debugging purposes. </p> <dl class="section return"><dt>Returns</dt><dd>The error message including debug information. </dd></dl> </div> </div> <a id="a8d7803f4034e5da688bbe3dca9715b6a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a8d7803f4034e5da688bbe3dca9715b6a">◆ </a></span>getFile()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::string& Exception::getFile </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the file in which the exception was thrown. </p> <dl class="section return"><dt>Returns</dt><dd>The name of the file in which the exception was thrown. </dd></dl> </div> </div> <a id="add9b14e9f5a48bdaf05487d6a13378be"></a> <h2 class="memtitle"><span class="permalink"><a href="#add9b14e9f5a48bdaf05487d6a13378be">◆ </a></span>getLine()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Exception::getLine </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the line where the exception was originally thrown. </p> <dl class="section return"><dt>Returns</dt><dd>The line of the source file where the exception was generated. </dd></dl> </div> </div> <a id="acddc608f0463722b5c55d4aa9bf4c20d"></a> <h2 class="memtitle"><span class="permalink"><a href="#acddc608f0463722b5c55d4aa9bf4c20d">◆ </a></span>getMessage()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::string& Exception::getMessage </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the error message. </p> <dl class="section return"><dt>Returns</dt><dd>The error message as string. </dd></dl> </div> </div> <a id="a614290750b40ac6d7fcab144a58696b5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a614290750b40ac6d7fcab144a58696b5">◆ </a></span>what()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const char* Exception::what </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the error message. </p> <dl class="section return"><dt>Returns</dt><dd>A C string error message. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="Exception_8h_source.html">Exception.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.15 </small></address> </body> </html>