title: NSInvalidArgumentException not being caught in code
body: <p>I'm using selectors to dynamically call functions in Objective-C. My problem is that my <code>@try</code>/<code>@catch</code> block is not catching the exception if I pass an non-existent function name.</p>
  
  <p>In the console I get an uncaught <code>NSInvalidArgumentException</code> and further down I get an uncaught <code>NSException</code>.</p>
  
  <p>I have tried catching the the two types of exceptions in a standard <code>@try</code>/<code>@catch</code> block but they aren't registering. Xcode won't let me compile if I try to catch <code>NSInvalidArgumentException</code> as it's not a recognized type.</p>
  
  <p>Any ideas on how to solve this?</p>
  
  <pre><code>@try {
      SEL s = NSSelectorFromString(@"funName");
      [self performSelector:s withObject: nil];
  } 
  @catch (NSException/NSInvalidArgumentException exception) {
       NSLog(@"ERROR: %@", [exception message/reason];
  } 
  </code></pre>