title: TypeError: exceptions must derive from BaseException
body: <p>I was practicing exception handling from sanfoundary and I got hanged up on a problem which had the problem statement like:</p>
  <pre><code>try:
      if '1' != 1:
          raise &quot;someError&quot;
      else:
          print(&quot;someError has not occurred&quot;)
  except &quot;someError&quot;:
      print (&quot;someError has occurred&quot;)
  </code></pre>
  <p>It is returning an error on running which I am unable to understand, i.e.,</p>
  <pre><code>Traceback (most recent call last):
    File &quot;M:\Prac\test2.py&quot;, line 3, in &lt;module&gt;
      raise &quot;someError&quot;
  TypeError: exceptions must derive from BaseException
  </code></pre>
  <p>During handling of the above exception, another exception occurred:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;M:\Prac\test2.py&quot;, line 6, in &lt;module&gt;
      except &quot;someError&quot;:
  TypeError: catching classes that do not inherit from BaseException is not allowed
  </code></pre>