Skip to content

Commit

Permalink
chore(predictions): add support for invalid signature exception (#3625)
Browse files Browse the repository at this point in the history
  • Loading branch information
phantumcode authored Apr 19, 2024
1 parent e38ba53 commit 887c2d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public enum LivenessEventKind {
public static let serviceQuotaExceeded = Self(rawValue: "ServiceQuotaExceededException")
public static let serviceUnavailable = Self(rawValue: "ServiceUnavailableException")
public static let sessionNotFound = Self(rawValue: "SessionNotFoundException")
public static let invalidSignature = Self(rawValue: "InvalidSignatureException")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public struct FaceLivenessSessionError: Swift.Error, Equatable {
public static let accessDenied = Self(code: 7)
public static let invalidRegion = Self(code: 8)
public static let invalidURL = Self(code: 9)
public static let invalidSignature = Self(code: 10)
}

extension FaceLivenessSessionError {
Expand All @@ -85,6 +86,8 @@ extension FaceLivenessSessionError {
self = .serviceUnavailable
case .sessionNotFound:
self = .sessionNotFound
case .invalidSignature:
self = .invalidSignature
default:
self = .unknown
}
Expand Down

0 comments on commit 887c2d9

Please sign in to comment.