PreEmptive Analytics iOS API  2.0
The official iOS API for sending PreEmptive Analytics data.
PAExceptionInfo Class Reference

Class for handling exception information. More...

Inheritance diagram for PAExceptionInfo:

Instance Methods

(id) - initWithNSError:type:
 Initializes the exception info with an NSError. More...
 
(id) - initWithNSException:type:
 Initializes the exception info with an NSException. More...
 
(id) - initWithName:message:type:
 Initializes the exception info with a name and message. More...
 
(void) - addComponentInfo:
 Adds information regarding the component.
 
(NSArray *) - componentInfos
 Retrieves the list of component information assocated with this error. More...
 

Protected Types

enum  PAExceptionEventType : NSUInteger { CAUGHT_EXCEPTION =0, UNCAUGHT_EXCEPTION =1, THROWN_EXCEPTION =1 << 1 }
 Values that represent the type of exception. More...
 

Properties

NSString * name
 The name of the exception. More...
 
NSString * message
 A human readable message that describes the condition. More...
 
NSString * contactInfo
 Contact information for the end user (e.g. More...
 
NSString * comment
 A comment string provided by the end user.
 
enum PAExceptionEventType eventType
 The type of exception.
 

Detailed Description

Class for handling exception information.

Definition at line 18 of file PAExceptionInfo.h.

Member Enumeration Documentation

- (enum PAExceptionEventType) :
protected

Values that represent the type of exception.

Enumerator
CAUGHT_EXCEPTION 

A caught exception.

UNCAUGHT_EXCEPTION 

An uncaught exception.

THROWN_EXCEPTION 

A thrown exception.

Definition at line 23 of file PAExceptionInfo.h.

Method Documentation

- (NSArray*) componentInfos

Retrieves the list of component information assocated with this error.

Returns
An array of component information. May be empty.
- (id) initWithName: (NSString *)  name
message: (NSString *)  message
type: (enum PAExceptionEventType type 

Initializes the exception info with a name and message.

Parameters
nameThe name of the exception.
messageA human readable message that describes the condition.
typeThe type of exception.
Returns
An initialized exception info.
- (id) initWithNSError: (NSError *)  error
type: (enum PAExceptionEventType type 

Initializes the exception info with an NSError.

Parameters
errorThe error.
typeThe type of error.
Returns
An initialized exception info.
- (id) initWithNSException: (NSException *)  exception
type: (enum PAExceptionEventType type 

Initializes the exception info with an NSException.

Parameters
exceptionThe exception.
typeThe type of exception.
Returns
An initialized exception info.

Property Documentation

- (NSString*) contactInfo
readwriteatomicstrong

Contact information for the end user (e.g.

an email address)

Definition at line 78 of file PAExceptionInfo.h.

- (NSString*) message
readwriteatomicstrong

A human readable message that describes the condition.

Gets initialized from the [NSError localizedDescription] or [NSException reason], but can be overwritten.

Definition at line 73 of file PAExceptionInfo.h.

- (NSString*) name
readwriteatomicstrong

The name of the exception.

Gets initialized from [NSError domain] or [NSException name], but can be overwritten.

Definition at line 68 of file PAExceptionInfo.h.


The documentation for this class was generated from the following file: