Add helper method for creating userInfo for error log notification.

This commit is contained in:
Brent Simmons committed 2026-03-12 19:41:06 -07:00
1 parent 4f60441b91
commit 90d599ef8d
1 file changed
+8
@@ -19,4 +19,12 @@ public struct ErrorLogUserInfoKey {
public static let sourceName = "sourceName"
public static let sourceID = "sourceID" // 0-99 are AccountType raw values. 100 and greater are for other components.
public static let errorMessage = "errorMessage"
public static func userInfo(sourceName: String, sourceID: Int, errorMessage: String) -> [String: Any] {
[
Self.sourceName: sourceName,
Self.sourceID: sourceID,
Self.errorMessage: errorMessage
]
}
}