-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathUID2Error.swift
More file actions
38 lines (26 loc) · 882 Bytes
/
UID2Error.swift
File metadata and controls
38 lines (26 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// UID2Error.swift
//
//
// Created by Brad Leege on 1/31/23.
//
import Foundation
/// UID2 Specifc Errors
enum UID2Error: Error {
/// Unable to decrypt Payload Data
case decryptPayloadData
/// URLSession call did not return an HTTPURLResponse
case httpURLResponse
/// Server retunred a non HTTP 200 response
case refreshTokenServer(status: RefreshTokenResponse.Status, message: String?)
/// Error parsing data / response from server
case refreshTokenServerDecoding(httpStatus: Int, message: String)
/// Unable to convert RefreshTokenResponse to RefreshAPIPackage
case refreshResponseToRefreshAPIPackage
/// Token has expired
case identityPackageIsExpired
/// User has opted out
case userHasOptedOut
/// Unable to generate an UID2 Server
case urlGeneration
}