fix: Remove unused Error codes (#1887)
* fix: Remove unused Errors * Errors.kt -> CameraError.kt * fix: remove .system
This commit is contained in:
@@ -22,7 +22,8 @@ extension AVCaptureVideoStabilizationMode {
|
||||
self = .cinematicExtended
|
||||
return
|
||||
} else {
|
||||
throw EnumParserError.unsupportedOS(supportedOnOS: "iOS 13.0")
|
||||
self = .cinematic
|
||||
return
|
||||
}
|
||||
case "off":
|
||||
self = .off
|
||||
|
@@ -12,10 +12,6 @@ import Foundation
|
||||
An error raised when the given descriptor (TypeScript string union type) cannot be parsed and converted to a Swift enum.
|
||||
*/
|
||||
enum EnumParserError: Error {
|
||||
/**
|
||||
Raised when the descriptor is not supported on the current OS.
|
||||
*/
|
||||
case unsupportedOS(supportedOnOS: String)
|
||||
/**
|
||||
Raised when the descriptor does not match any of the possible values.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user