[NSException raise:@"1111" format:@"错误diamante方法是范德萨发"];
输出:
*** Terminating app due to uncaught exception '1111', reason: '错误diamante方法是范德萨发'
*** First throw call stack:
(0x2ee82f0b 0x39615ce7 0x2ee82e4d 0xc73a1 0x316e76c7 0x316e7663 0x316e7633 0x316d2d7b 0x316e707b 0x316e6d4d 0x316e1ca7 0x316b6e75 0x316b5541 0x2ee4dfef 0x2ee4d4b7 0x2ee4bca7 0x2edb6769 0x2edb654b 0x33d136d3 0x31715891 0x2b6ba1 0x39b13ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
同时,代码就会在 NSException 代码出 中断