public Model copyServiceErrorsToOperations(Model model, ServiceShape forService) {
        return new CopyServiceErrorsToOperationsTransform(forService).transform(this, model);
    }
Copies the errors defined on the given service onto each operation bound to the
service, effectively flattening service error inheritance.

@param model Model to modify.
@param forService Service shape to use as the basis for copying errors to operations.
@return Returns the transformed model.
smithy-model/src/main/java/software/amazon/smithy/model/transform/ModelTransformer.java