From 52883a534b97198914169dc8f50e155669c33ba8 Mon Sep 17 00:00:00 2001 From: Kyle Matthew Hedden Date: Tue, 28 Feb 2023 22:08:40 -0500 Subject: [PATCH] Create MFPerformanceErrorObject for error logging. --- MVMCore/MVMCore/Constants/MVMCoreErrorConstants.h | 3 ++- MVMCore/MVMCore/Utility/MVMCoreErrorObject.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MVMCore/MVMCore/Constants/MVMCoreErrorConstants.h b/MVMCore/MVMCore/Constants/MVMCoreErrorConstants.h index de916ed..ef1115d 100644 --- a/MVMCore/MVMCore/Constants/MVMCoreErrorConstants.h +++ b/MVMCore/MVMCore/Constants/MVMCoreErrorConstants.h @@ -40,5 +40,6 @@ typedef NS_ENUM(NSInteger, ErrorCode) { ErrorCodeSSL,//23 ErrorCodeNoViewControllerToPresentOn,//24 ErrorCodeNoErrorPageSent, //25 - ErrorCodeFontNotFound //26 + ErrorCodeFontNotFound, //26 + ErrorCodePoorPerformance //27 }; diff --git a/MVMCore/MVMCore/Utility/MVMCoreErrorObject.h b/MVMCore/MVMCore/Utility/MVMCoreErrorObject.h index b91326e..465dc44 100644 --- a/MVMCore/MVMCore/Utility/MVMCoreErrorObject.h +++ b/MVMCore/MVMCore/Utility/MVMCoreErrorObject.h @@ -26,7 +26,7 @@ @property (nullable, strong, nonatomic) NSString *requestId; @property (nullable, strong, nonatomic) NSString *requestUrl; @property (nonatomic, assign) NSInteger httpStatusCode; -@property (nonatomic, strong) NSDictionary *serverResponseInfo; +@property (nullable, strong, nonatomic) NSDictionary *serverResponseInfo; // For the crash log. @property (nullable, strong, nonatomic) NSDictionary *crashLog;