BugsnagError

Objective-C


@interface BugsnagError : NSObject

Swift

class BugsnagError : NSObject

An Error represents information extracted from an NSError, NSException, or other error source.

  • The class of the error generating the report

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *errorClass;

    Swift

    var errorClass: String? { get set }
  • The message of or reason for the error generating the report

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *errorMessage;

    Swift

    var errorMessage: String? { get set }
  • Sets a representation of this error’s stacktrace

    Declaration

    Objective-C

    @property (nonatomic, copy, nonnull) NSArray<BugsnagStackframe *> *stacktrace;

    Swift

    var stacktrace: [BugsnagStackframe] { get set }
  • The type of the captured error

    Declaration

    Objective-C

    @property (nonatomic) BSGErrorType type;

    Swift

    var type: BSGErrorType { get set }