SearchError
public enum SearchError : Error
extension SearchError: CustomNSError
extension SearchError: Equatable
Common SearchSDK errors
-
Generic type of error. Mostly kind of bridge from NSError.
Declaration
Swift
case generic(code: Int, domain: String, message: String)
-
Feedback event template has a mistake.
Declaration
Swift
case incorrectEventTemplate
-
Feedback event contains incorrect search result object.
Declaration
Swift
case incorrectSearchResultForFeedback
-
Search request is broken. Checkout
reason
value for details.Declaration
Swift
case searchRequestFailed(reason: Error)
-
Category search request is broken. Checkout
reason
value for details.Declaration
Swift
case categorySearchRequestFailed(reason: Error)
-
Cannot register custom data provider. Checkout
reason
value for details.Declaration
Swift
case failedToRegisterDataProvider(reason: Error, dataProvider: IndexableDataProvider)
-
Cannot process search response.
Declaration
Swift
case responseProcessingFailed
-
Request was cancelled.
Declaration
Swift
case searchRequestCancelled
-
Request was failed due to internal error.
Declaration
Swift
case internalSearchRequestError(message: String)
-
Cannot fetch suggestion details.
Declaration
Swift
case resultResolutionFailed(SearchResultSuggestion)
-
Cannot find data resolver for suggestion to fetch details.
Declaration
Swift
case dataResolverNotFound(SearchResultSuggestion)
-
Reverse geocoding request was failed. Checkout
reason
value for details.Declaration
Swift
case reverseGeocodingFailed(reason: Error, options: ReverseGeocodingOptions)
-
Weak-self could not be unwrapped because the owning reference was weak. Please replace with a strong-ownership reference.
Declaration
Swift
case owningObjectDeallocated
-
Mapbox Search SDK error domain
Declaration
Swift
public static var errorDomain: String
-
Search Error unique code (across enum)
Declaration
Swift
public var errorCode: Int { get }
-
Associated userInfo
Declaration
Swift
public var errorUserInfo: [String : Any] { get }
-
Compare errors as
NSError
typesDeclaration
Swift
public static func == (lhs: SearchError, rhs: SearchError) -> Bool