CatNiP prefinal
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/UncaughtExceptionHandler.m File Reference
#import "UncaughtExceptionHandler.h"
#include <libkern/OSAtomic.h>
#include <execinfo.h>
Include dependency graph for UncaughtExceptionHandler.m:

Go to the source code of this file.

Functions

void HandleException (NSException *exception)
void InstallUncaughtExceptionHandler ()
void SignalHandler (int signal)

Variables

volatile int32_t UncaughtExceptionCount = 0
NSString *const UncaughtExceptionHandlerAddressesKey = @"UncaughtExceptionHandlerAddressesKey"
const NSInteger UncaughtExceptionHandlerReportAddressCount = 5
NSString *const UncaughtExceptionHandlerSignalExceptionName = @"UncaughtExceptionHandlerSignalExceptionName"
 Handles uncaught exceptions and displays them to the user.
NSString *const UncaughtExceptionHandlerSignalKey = @"UncaughtExceptionHandlerSignalKey"
const NSInteger UncaughtExceptionHandlerSkipAddressCount = 4
const int32_t UncaughtExceptionMaximum = 10

Function Documentation

void HandleException ( NSException *  exception)

Definition at line 114 of file UncaughtExceptionHandler.m.

References UncaughtExceptionHandler::backtrace, UncaughtExceptionCount, and UncaughtExceptionMaximum.

Here is the call graph for this function:

Here is the caller graph for this function:

void InstallUncaughtExceptionHandler ( )

Definition at line 173 of file UncaughtExceptionHandler.m.

References HandleException(), and SignalHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

void SignalHandler ( int  signal)

Definition at line 139 of file UncaughtExceptionHandler.m.

References UncaughtExceptionHandler::backtrace, UncaughtExceptionCount, and UncaughtExceptionMaximum.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

volatile int32_t UncaughtExceptionCount = 0

Definition at line 21 of file UncaughtExceptionHandler.m.

NSString* const UncaughtExceptionHandlerAddressesKey = @"UncaughtExceptionHandlerAddressesKey"

Definition at line 19 of file UncaughtExceptionHandler.m.

Definition at line 25 of file UncaughtExceptionHandler.m.

NSString* const UncaughtExceptionHandlerSignalExceptionName = @"UncaughtExceptionHandlerSignalExceptionName"

Handles uncaught exceptions and displays them to the user.

Created by Matt Gallagher on 2010/05/25. Copyright 2010 Matt Gallagher. All rights reserved.

Permission is given to use this source code file, free of charge, in any project, commercial or otherwise, entirely at your risk, with the condition that any redistribution (in part or whole) of source code must retain this copyright and permission notice. Attribution in compiled projects is appreciated but not required.

Definition at line 17 of file UncaughtExceptionHandler.m.

NSString* const UncaughtExceptionHandlerSignalKey = @"UncaughtExceptionHandlerSignalKey"

Definition at line 18 of file UncaughtExceptionHandler.m.

Definition at line 24 of file UncaughtExceptionHandler.m.

const int32_t UncaughtExceptionMaximum = 10

Definition at line 22 of file UncaughtExceptionHandler.m.

 All Classes Files Functions Variables Enumerations Enumerator Properties Defines