Skip to content

Commit 367e1a3

Browse files
author
Clément Le Provost
committed
Change error domain to “AlgoliaSearch”
Also expose it as a top-level constant (Swift only).
1 parent d9cdb26 commit 367e1a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Source/Client.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public func ==(lhs: LibraryVersion, rhs: LibraryVersion) -> Bool {
4242
}
4343

4444

45+
/// Error domain used for errors raised by this module.
46+
public let ErrorDomain = "AlgoliaSearch"
47+
48+
4549
/// Entry point in the Swift API.
4650
///
4751
/// You should instantiate a Client object with your AppID, ApiKey and Hosts
@@ -50,7 +54,8 @@ public func ==(lhs: LibraryVersion, rhs: LibraryVersion) -> Bool {
5054
// MARK: Constants
5155

5256
/// Error domain used for errors raised by this module.
53-
@objc public static let ErrorDomain = "Client.ErrorDomain"
57+
/// + NOTE: This shortcut is provided for Objective-C bridging. See the top-level `ErrorDomain` constant.
58+
@objc public static let ErrorDomain = AlgoliaSearch.ErrorDomain
5459

5560
// MARK: Properties
5661

0 commit comments

Comments
 (0)