FirebaseCrashlytics Framework Reference

FIRExceptionModel


@interface FIRExceptionModel : NSObject

The Firebase Crashlytics ExceptionModel provides a way to report custom exceptions to Crashlytics that came from a runtime environment outside of the native platform Crashlytics is running in.

  • Initializes an ExceptionModel with the given required fields.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)name
                                  reason:(nonnull NSString *)reason;

    Parameters

    name

    - typically the type of the Exception class

    reason

    - the human-readable reason the issue occurred

  • Creates an ExceptionModel with the given required fields.

    Declaration

    Objective-C

    + (nonnull instancetype)exceptionModelWithName:(nonnull NSString *)name
                                            reason:(nonnull NSString *)reason;

    Parameters

    name

    - typically the type of the Exception class

    reason

    - the human-readable reason the issue occurred

  • A list of stack frames that make up the stack trace. The order of the stack trace is top-first, so typically the “main” function is the last element in this list.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<FIRStackFrame *> *_Nonnull stackTrace;