From e7cf163dbc2abce79f444148da8f9db0d681a8f5 Mon Sep 17 00:00:00 2001 From: Jiabin Geng Date: Thu, 19 Nov 2020 10:05:20 -0700 Subject: [PATCH] new error type, event type, event source (#455) Co-authored-by: jgeng --- AEPCore/Sources/eventhub/AEPError.swift | 4 ++++ AEPCore/Sources/eventhub/EventSource.swift | 1 + AEPCore/Sources/eventhub/EventType.swift | 1 + 3 files changed, 6 insertions(+) diff --git a/AEPCore/Sources/eventhub/AEPError.swift b/AEPCore/Sources/eventhub/AEPError.swift index 7c1450742..7a1d8deec 100644 --- a/AEPCore/Sources/eventhub/AEPError.swift +++ b/AEPCore/Sources/eventhub/AEPError.swift @@ -20,5 +20,9 @@ import Foundation case callbackTimeout = 1 case callbackNil = 2 case none = 3 + case serverError = 4 + case networkError = 5 + case invalidRequest = 6 + case invalidResponse = 7 case errorExtensionNotInitialized = 11 } diff --git a/AEPCore/Sources/eventhub/EventSource.swift b/AEPCore/Sources/eventhub/EventSource.swift index e42589345..3d13f465f 100644 --- a/AEPCore/Sources/eventhub/EventSource.swift +++ b/AEPCore/Sources/eventhub/EventSource.swift @@ -26,5 +26,6 @@ public class EventSource: NSObject { public static let responseIdentity = "com.adobe.eventSource.responseIdentity" public static let responseProfile = "com.adobe.eventSource.responseProfile" public static let sharedState = "com.adobe.eventSource.sharedState" + public static let notification = "com.adobe.eventSource.notification" public static let wildcard = "com.adobe.eventSource._wildcard_" } diff --git a/AEPCore/Sources/eventhub/EventType.swift b/AEPCore/Sources/eventhub/EventType.swift index 5cecbc10b..696a0ba98 100644 --- a/AEPCore/Sources/eventhub/EventType.swift +++ b/AEPCore/Sources/eventhub/EventType.swift @@ -39,5 +39,6 @@ public class EventType: NSObject { public static let genericIdentity = "com.adobe.eventType.generic.identity" public static let genericPii = "com.adobe.eventType.generic.pii" public static let genericData = "com.adobe.eventType.generic.data" + public static let edge = "com.adobe.eventType.edge" public static let wildcard = "com.adobe.eventType._wildcard_" }