// // Copyright Amazon.com Inc. or its affiliates. // All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // import Amplify struct ServiceErrorMapping { let map: (T) -> PredictionsError static func map(_ error: T, with rule: ServiceErrorMapping) -> PredictionsError { rule.map(error) } }