Written the documentation for the AmiiboClientError error.
This commit is contained in:
parent
5dbf310f92
commit
5b10a02d13
@ -1,4 +1,7 @@
|
|||||||
|
/// This error definitions represents any error happening while the client makes a request to the remote API and handles the respective response, excluding the decoding of the retrieved data into a particular model.
|
||||||
public enum AmiiboClientError: Error {
|
public enum AmiiboClientError: Error {
|
||||||
|
/// The status code of the response is not the expected one, which is `.ok` (`200`).
|
||||||
case responseCode(Int)
|
case responseCode(Int)
|
||||||
|
/// The status code of the response was not received at all.
|
||||||
case responseCodeNotFound
|
case responseCodeNotFound
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user