title: Catching all Custom Exceptions Python
body: <p>I have a number of custom exceptions created for my Django project. like so</p>
  
  <p><strong>errors.py</strong></p>
  
  <pre><code># General Exceptions
  
  class VersionError(Exception):
      pass
  
  class ParseError(Exception):
      pass
  
  class ConfigError(Exception):
      pass
  
  class InstallError(Exception):
      pass
  </code></pre>
  
  <p>However I want to print the output from my custom exceptions but not the general. But do not want to list them all out, i.e</p>
  
  <pre><code>try:
     do something wrong
  except &lt;custom errors&gt;, exc:
      print exc
  except:
      print "Gen
  </code></pre>