Skip to content

Commit

Permalink
[fix] updated credential error
Browse files Browse the repository at this point in the history
  • Loading branch information
dtsiflit committed Nov 1, 2024
1 parent 83fa4fb commit 96194dc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Sources/Entities/Errors/CredentialError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,22 @@
*/
import Foundation

public enum CredentialError: Error {
public enum CredentialError: LocalizedError {
case genericError
case issuerDoesNotSupportDeferredIssuance
case extraneousQueryComponents
case invalidScheme

public var errorDescription: String? {
switch self {
case .genericError:
return "Something went wrong"
case .issuerDoesNotSupportDeferredIssuance:
return "Issuer does not support deferred issuance"
case .extraneousQueryComponents:
return "Extraneous query components"
case .invalidScheme:
return "Invalid scheme"
}
}
}

0 comments on commit 96194dc

Please sign in to comment.