<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="l00024"></a><aclass="code"href="classneuralpp_1_1NetworkFileNotFoundException.html">00024</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="l00027"></a><aclass="code"href="classneuralpp_1_1NetworkFileNotFoundException.html#24cde7729ab22d343f36e638cfc40702">00027</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="l00028"></a>00028 };
<aname="l00029"></a>00029
<aname="l00035"></a><aclass="code"href="classneuralpp_1_1NetworkFileWriteException.html">00035</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="l00038"></a><aclass="code"href="classneuralpp_1_1NetworkFileWriteException.html#c8802852cb38d5edf6f490ff3acb6078">00038</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="l00039"></a>00039 };
<aname="l00040"></a>00040
<aname="l00045"></a><aclass="code"href="classneuralpp_1_1InvalidXMLException.html">00045</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="l00048"></a><aclass="code"href="classneuralpp_1_1InvalidXMLException.html#4a8b81678ed0c319e1715ab5ef9112da">00048</a><spanclass="keyword">const</span><spanclass="keywordtype">char</span>* <aclass="code"href="classneuralpp_1_1InvalidXMLException.html#4a8b81678ed0c319e1715ab5ef9112da">what</a>() <spanclass="keyword">const</span> throw() { <spanclass="keywordflow">return</span><spanclass="stringliteral">"Attempt to load an invalid XML file"</span>; }
<aname="l00049"></a>00049 };
<aname="l00050"></a>00050
<aname="l00056"></a><aclass="code"href="classneuralpp_1_1NetworkIndexOutOfBoundsException.html">00056</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="l00059"></a><aclass="code"href="classneuralpp_1_1NetworkIndexOutOfBoundsException.html#8b65d77cb375a0aa40d5a9ea692bd5c3">00059</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="l00060"></a>00060 };
<aname="l00061"></a>00061
<aname="l00067"></a><aclass="code"href="classneuralpp_1_1InvalidSynapticalWeightException.html">00067</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="l00070"></a><aclass="code"href="classneuralpp_1_1InvalidSynapticalWeightException.html#8d374dd7e8363b2551ae6e306b11473a">00070</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>; }