title: Detecting Exception Type
body: <p>I have a set of exceptions defined that are being raised depending on the issue along with a custom message for the user. </p>
  
  <p>I would like to develop a mechanism of error handling using these custom exceptions and let them bubble up to a higher level logging class and eventually to the user so that we can provide feedback and tell them what to fix. It could even be the back end system crapping out, so they would know to come back a bit later. </p>
  
  <p>However, if it is not one of the manually created exceptions and it is a system exception (these are being raised, but wrapped in a custom exception), I would like to return a general error.</p>
  
  <p>When I am handling my exception, what is a good way to detect if it is one of mine or something I didn't account for?</p>
  
  <p>I was thinking of subclassing all my exceptions under a base one with a custom attribute and checking for it when letting the exception bubble up, but it seems kind of hacky. </p>
  
  <p>Thanks</p>