Skip to content

Instantly share code, notes, and snippets.

@yangboz
Created February 10, 2014 14:51

Revisions

  1. yangboz created this gist Feb 10, 2014.
    10 changes: 10 additions & 0 deletions App42API_call_snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    @try{
    //App42 service API call here.
    }@catch (App42BadParameterException *ex) {
    NSLog(@"BadParameterException found,status code:%d",ex.appErrorCode);
    }@catch (App42SecurityException *ex) {
    NSLog(@"SecurityException found!");
    }@catch (App42Exception *ex) {
    NSLog(@"App42 Exception found:%@",ex.description);
    //NSAlert here.
    }