Add new error

This commit is contained in:
Garth Vander Houwen 2024-08-14 10:52:59 -07:00
parent d987c09409
commit 7b3553bbf1
2 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,7 @@ enum RoutingError: Int, CaseIterable, Identifiable {
case dutyCycleLimit = 9
case badRequest = 32
case notAuthorized = 33
case pkiFailed = 34
var id: Int { self.rawValue }
var display: String {
@ -50,6 +51,8 @@ enum RoutingError: Int, CaseIterable, Identifiable {
return "routing.badRequest".localized
case .notAuthorized:
return "routing.notauthorized".localized
case .pkiFailed:
return "routing.pkiFailed".localized
}
}
func protoEnumValue() -> Routing.Error {
@ -80,7 +83,8 @@ enum RoutingError: Int, CaseIterable, Identifiable {
return Routing.Error.badRequest
case .notAuthorized:
return Routing.Error.notAuthorized
case .pkiFailed:
return Routing.Error.pkiFailed
}
}
}

@ -1 +1 @@
Subproject commit 97fa34517f80332a11046a73f26d55100fbee9e2
Subproject commit 3e753697aa1140d2c998cb63739729e733002874