<h1>neural++_exception.hpp</h1><ahref="neural_09_09__exception_8hpp.html">Go to the documentation of this file.</a><divclass="fragment"><preclass="fragment"><aname="l00001"></a>00001 <spanclass="comment">/**************************************************************************************************</span>
<aname="l00005"></a>00005 <spanclass="comment"> * This program is free software: you can redistribute it and/or modify it under the terms of the *</span>
<aname="l00006"></a>00006 <spanclass="comment"> * GNU General Public License as published by the Free Software Foundation, either version 3 of *</span>
<aname="l00007"></a>00007 <spanclass="comment"> * the License, or (at your option) any later version. This program is distributed in the hope *</span>
<aname="l00008"></a>00008 <spanclass="comment"> * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *</span>
<aname="l00009"></a>00009 <spanclass="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *</span>
<aname="l00010"></a>00010 <spanclass="comment"> * more details. You should have received a copy of the GNU General Public License along with *</span>
<aname="l00011"></a>00011 <spanclass="comment"> * this program. If not, see <http://www.gnu.org/licenses/>. *</span>
<aname="l00026"></a><aclass="code"href="classneuralpp_1_1NetworkFileNotFoundException.html">00026</a><spanclass="keyword">class </span><aclass="code"href="classneuralpp_1_1NetworkFileNotFoundException.html"title="Exception thrown when doing an attempt to load a network from an invalid file.">NetworkFileNotFoundException</a> : <spanclass="keyword">public</span> std::exception {
<aname="l00029"></a><aclass="code"href="classneuralpp_1_1NetworkFileNotFoundException.html#24cde7729ab22d343f36e638cfc40702">00029</a><spanclass="keyword">const</span><spanclass="keywordtype">char</span>* <aclass="code"href="classneuralpp_1_1NetworkFileNotFoundException.html#24cde7729ab22d343f36e638cfc40702">what</a>() <spanclass="keyword">const</span> throw() { <spanclass="keywordflow">return</span><spanclass="stringliteral">"Attempt to load a neural network from an invalid network file"</span>; }
<aname="l00030"></a>00030 };
<aname="l00031"></a>00031
<aname="l00037"></a><aclass="code"href="classneuralpp_1_1NetworkFileWriteException.html">00037</a><spanclass="keyword">class </span><aclass="code"href="classneuralpp_1_1NetworkFileWriteException.html"title="Exception thrown when trying to write the network&#39;s information to a file that...">NetworkFileWriteException</a> : <spanclass="keyword">public</span> std::exception {
<aname="l00040"></a><aclass="code"href="classneuralpp_1_1NetworkFileWriteException.html#c8802852cb38d5edf6f490ff3acb6078">00040</a><spanclass="keyword">const</span><spanclass="keywordtype">char</span>* <aclass="code"href="classneuralpp_1_1NetworkFileWriteException.html#c8802852cb38d5edf6f490ff3acb6078">what</a>() <spanclass="keyword">const</span> throw() { <spanclass="keywordflow">return</span><spanclass="stringliteral">"There was an error while writing the network file"</span>; }
<aname="l00041"></a>00041 };
<aname="l00042"></a>00042
<aname="l00047"></a><aclass="code"href="classneuralpp_1_1InvalidXMLException.html">00047</a><spanclass="keyword">class </span><aclass="code"href="classneuralpp_1_1InvalidXMLException.html"title="Exception thrown when trying parsing an invalid XML.">InvalidXMLException</a> : <spanclass="keyword">public</span> std::exception {
<aname="l00053"></a>00053 sprintf (<aclass="code"href="classneuralpp_1_1InvalidXMLException.html#e0c63b17f7b5b0df20d8361bc9ee92b4">error</a>, <spanclass="stringliteral">"Attempt to load an invalid XML file: %s"</span>, err);
<aname="l00064"></a><aclass="code"href="classneuralpp_1_1NetworkIndexOutOfBoundsException.html">00064</a><spanclass="keyword">class </span><aclass="code"href="classneuralpp_1_1NetworkIndexOutOfBoundsException.html"title="Exception raised when trying to access a neuron whose index is larger than the number...">NetworkIndexOutOfBoundsException</a> : <spanclass="keyword">public</span> std::exception {
<aname="l00067"></a><aclass="code"href="classneuralpp_1_1NetworkIndexOutOfBoundsException.html#8b65d77cb375a0aa40d5a9ea692bd5c3">00067</a><spanclass="keyword">const</span><spanclass="keywordtype">char</span>* <aclass="code"href="classneuralpp_1_1NetworkIndexOutOfBoundsException.html#8b65d77cb375a0aa40d5a9ea692bd5c3">what</a>() <spanclass="keyword">const</span> throw() { <spanclass="keywordflow">return</span><spanclass="stringliteral">"Attempt to access a non-existing neuron"</span>; }
<aname="l00068"></a>00068 };
<aname="l00069"></a>00069
<aname="l00075"></a><aclass="code"href="classneuralpp_1_1InvalidSynapticalWeightException.html">00075</a><spanclass="keyword">class </span><aclass="code"href="classneuralpp_1_1InvalidSynapticalWeightException.html"title="Exception raised when, while trying the network or directly, the weight of a synapsis...">InvalidSynapticalWeightException</a> : <spanclass="keyword">public</span> std::exception {
<aname="l00078"></a><aclass="code"href="classneuralpp_1_1InvalidSynapticalWeightException.html#8d374dd7e8363b2551ae6e306b11473a">00078</a><spanclass="keyword">const</span><spanclass="keywordtype">char</span>* <aclass="code"href="classneuralpp_1_1InvalidSynapticalWeightException.html#8d374dd7e8363b2551ae6e306b11473a">what</a>() <spanclass="keyword">const</span> throw() { <spanclass="keywordflow">return</span><spanclass="stringliteral">"Attempt to set an invalid weight for the synapsis"</span>; }