title: Objective-C catch specific type of exception
body: <p>I (as some of you know from my other questions :)) am building a cocoa-touch static library, and I have the code <code>[NSException raise:@"This is the name of my exception" format:@"This is my format", nil]</code> scattered throughout my project as a shortcut to subclassing <code>NSException</code>. This is coming back to bite me, as that I need to catch ONLY an exception that has a certain string in the name, and let others go by.</p>
  
  <p>Now I know, that If I subclassed <code>NSException</code> I could do this:</p>
  
  <pre><code>@try {
      NSLog(@"This is some code that might raise an exception");
  }
  @catch (MyException *e){
      NSLog(@"Yep, something went wrong....%@", e);
  }
  @finally {
      NSLog(@"This is my cleanup code");
  }
  </code></pre>
  
  <p>But is there an easier way of me doing this than refactoring all my code?</p>