Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
1.5 kB · 52 lines
C
at android
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253#ifndef EXCEPTIONHANDLER_H#define EXCEPTIONHANDLER_H#include <Foundation/NSException.h>
@interface NSExceptionHandler : NSObject{@private id _delegate; unsigned int _handlingMask, _hangingMask;}
+ (NSExceptionHandler *)defaultExceptionHandler;
@property (nonatomic) unsigned int exceptionHandlingMask;@property (nonatomic) unsigned int exceptionHangingMask;@property (nonatomic, retain) id delegate;
@end
@interface NSObject (NSExceptionHandlerAdditions)-(BOOL) exceptionHandler:(NSExceptionHandler*) sender shouldHandleException:(NSException*) exception mask:(unsigned int) aMask;-(BOOL) exceptionHandler:(NSExceptionHandler*) sender shouldLogException:(NSException*) exception mask:(unsigned int) aMask;@end
enum{ NSHangOnUncaughtExceptionMask = 1, NSHangOnUncaughtSystemExceptionMask = 2, NSHangOnUncaughtRuntimeErrorMask = 4, NSHangOnTopLevelExceptionMask = 8, NSHangOnOtherExceptionMask = 16};
enum{ NSLogUncaughtExceptionMask = 1, NSHandleUncaughtExceptionMask = 2, NSLogUncaughtSystemExceptionMask = 4, NSHandleUncaughtSystemExceptionMask = 8, NSLogUncaughtRuntimeErrorMask = 0x10, NSHandleUncaughtRuntimeErrorMask = 0x20, NSLogTopLevelExceptionMask = 0x40, NSHandleTopLevelExceptionMask = 0x80, NSLogOtherExceptionMask = 0x100, NSHandleOtherExceptionMask = 0x200};
#endif