-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from bugsnag/update-crash-reporter
Update crash reporter
- Loading branch information
Showing
29 changed files
with
853 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// BugsnagHandledState.h | ||
// Bugsnag | ||
// | ||
// Created by Jamie Lynch on 21/09/2017. | ||
// Copyright © 2017 Bugsnag. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "BugsnagCrashReport.h" | ||
|
||
typedef NS_ENUM(NSUInteger, SeverityReasonType) { | ||
UnhandledException, | ||
Signal, | ||
HandledError, | ||
HandledException, | ||
UserSpecifiedSeverity, | ||
UserCallbackSetSeverity, | ||
PromiseRejection | ||
}; | ||
|
||
@interface BugsnagHandledState : NSObject | ||
|
||
@property (nonatomic, readonly) BOOL unhandled; | ||
@property (nonatomic, readonly) SeverityReasonType severityReasonType; | ||
@property (nonatomic, readonly) BSGSeverity originalSeverity; | ||
@property (nonatomic) BSGSeverity currentSeverity; | ||
@property (nonatomic, readonly) SeverityReasonType calculateSeverityReasonType; | ||
@property (nonatomic, readonly) NSString *attrValue; | ||
@property (nonatomic, readonly) NSString *attrKey; | ||
|
||
+ (NSString *)stringFromSeverityReason:(SeverityReasonType)severityReason; | ||
+ (SeverityReasonType)severityReasonFromString:(NSString *)string; | ||
|
||
+ (instancetype)handledStateWithSeverityReason:(SeverityReasonType)severityReason; | ||
|
||
+ (instancetype)handledStateWithSeverityReason:(SeverityReasonType)severityReason | ||
severity:(BSGSeverity)severity | ||
attrValue:(NSString *)attrValue; | ||
|
||
- (NSDictionary *)toJson; | ||
|
||
- (instancetype)initWithDictionary:(NSDictionary *)dict; | ||
|
||
@end |
Oops, something went wrong.