zoukankan      html  css  js  c++  java
  • 系统异常 NSException.h

    FOUNDATION_EXPORT NSExceptionName const NSGenericException;

    FOUNDATION_EXPORT NSExceptionName const NSRangeException;

    FOUNDATION_EXPORT NSExceptionName const NSInvalidArgumentException;

    FOUNDATION_EXPORT NSExceptionName const NSInternalInconsistencyException;

    FOUNDATION_EXPORT NSExceptionName const NSMallocException;

    FOUNDATION_EXPORT NSExceptionName const NSObjectInaccessibleException;

    FOUNDATION_EXPORT NSExceptionName const NSObjectNotAvailableException;

    FOUNDATION_EXPORT NSExceptionName const NSDestinationInvalidException;

        

    FOUNDATION_EXPORT NSExceptionName const NSPortTimeoutException;

    FOUNDATION_EXPORT NSExceptionName const NSInvalidSendPortException;

    FOUNDATION_EXPORT NSExceptionName const NSInvalidReceivePortException;

    FOUNDATION_EXPORT NSExceptionName const NSPortSendException;

    FOUNDATION_EXPORT NSExceptionName const NSPortReceiveException;

    FOUNDATION_EXPORT NSExceptionName const NSOldStyleException;

    @try{

            NSArray *tp = @[@"aaa"];

            

            [tp objectAtIndex:1];

        }

        @catch(NSException *exception){

            

            NSLog(@"eeee");

            

        }

  • 相关阅读:
    当老板如何带团队?
    创业者第一法宝-了解自己
    交流才能交易,交易才能交心
    集合框架
    MySQL一些命令语法
    JS组成整理
    git中可以pull但是push提示Everything up-to-date的情况
    循环判断以及文件的使用--练习1
    Hello World !
    linux文件权限修改
  • 原文地址:https://www.cnblogs.com/feng9exe/p/9401309.html
Copyright © 2011-2022 走看看