name
例外名を返します
解説
例外名を返します。
返り値
( NSString * )
名前
引数
フレームワーク
Foundation
クラス
NSException
Instance Methods
使用可能
10.0
参照
- initWithName:reason:userInfo:
+ exceptionWithName:reason:userInfo:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSException *matrixException; matrixException = [[NSException alloc] initWithName:@"Exception" reason:@"reason" userInfo:nil]; NSLog([matrixException name]); [matrixException raise]; } @end