PIOError
public enum PIOError : Error
PIOError
is the error type returned by PredictionIO.
-
Returned when failing to convert a string and optionally a query params dictionary to a valid
URL
.Declaration
Swift
case invalidURL(string: String, queryParams: [String : String]?)
-
Returned when an event is found invalid
Declaration
Swift
case invalidEvent(reason: InvalidEventReason)
-
Returned when a request fails. It could be due to network error, backend error or unknown response format.
Declaration
Swift
case failedRequest(reason: RequestFailureReason)
-
Returned when failing to serialize an object to a JSON.
Declaration
Swift
case failedSerialization(reason: SerializationFailureReason)
-
Returned when failing to deserialize a JSON to an object.
Declaration
Swift
case failedDeserialization(reason: DeserializationFailureReason)
-
The underlying reason the event is invalid.
See moreDeclaration
Swift
public enum InvalidEventReason
-
The underlying reason the request fails.
See moreDeclaration
Swift
public enum RequestFailureReason
-
The underlying reason the serialization fails.
See moreDeclaration
Swift
public enum SerializationFailureReason
-
The underlying reason the deserialization fails.
See moreDeclaration
Swift
public enum DeserializationFailureReason