<div><h4id="usefulbuiltinexceptions">Useful built-in exceptions:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">raise</span> TypeError(<spanclass="hljs-string">'Argument is of wrong type!'</span>)
<spanclass="hljs-keyword">raise</span> ValueError(<spanclass="hljs-string">'Argument is of right type but inappropriate value!'</span>)
<div><h4id="usefulbuiltinexceptions">Useful built-in exceptions:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">raise</span> TypeError(<spanclass="hljs-string">'Argument is of the wrong type!'</span>)
<spanclass="hljs-keyword">raise</span> ValueError(<spanclass="hljs-string">'Argument has the right type but an inappropriate value!'</span>)
<spanclass="hljs-keyword">raise</span> RuntimeError(<spanclass="hljs-string">'None of above!'</span>)