Handled Exception

In addition to automatically reporting your app's crashes, Apptics allows you to log handled exceptions (non-fatal).

  • You can find all the non-fatal under Quality>Non-fatal in the left menu.
  • The summary contains the total number of non-fatal, unique users, devices, and a total percentage of exception-free users.
CopiedNSMutableArray *array = [[NSMutableArray alloc]init];        
   
  @try  {
     NSString *string = [array objectAtIndex:10];
  } @catch (NSException *exception) {
     trackException(exception);
  }
Copieddo {
    = try NSString(contentsOfFile: "Foo.bar",
                         encoding: String.Encoding.utf8.rawValue)
  }
  catch let error as NSError {
    trackError(error)
  }

Note: Similarly you can use trackException to track exceptions.