smithy-diff/src/main/java/software/amazon/smithy/diff/evaluators/AddedOperationError.java [39:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private List<ValidationEvent> createErrorViolations(ChangedShape<OperationShape> change) {
        if (change.getOldShape().getErrors().equals(change.getNewShape().getErrors())) {
            return Collections.emptyList();
        }

        List<ValidationEvent> events = new ArrayList<>();
        for (ShapeId id : change.getNewShape().getErrors()) {
            if (!change.getOldShape().getErrors().contains(id)) {
                events.add(warning(change.getNewShape(), String.format(
                        "The `%s` error was added to the `%s` operation. This "
                        + "is backward-compatible if the error is only "
                        + "encountered as a result of a change in behavior of "
                        + "the client (for example, the client sends a new "
                        + "parameter to an operation).",
                        id, change.getShapeId())));
            }
        }

        return events;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



smithy-diff/src/main/java/software/amazon/smithy/diff/evaluators/AddedServiceError.java [39:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private List<ValidationEvent> createErrorViolations(ChangedShape<ServiceShape> change) {
        if (change.getOldShape().getErrors().equals(change.getNewShape().getErrors())) {
            return Collections.emptyList();
        }

        List<ValidationEvent> events = new ArrayList<>();
        for (ShapeId id : change.getNewShape().getErrors()) {
            if (!change.getOldShape().getErrors().contains(id)) {
                events.add(warning(change.getNewShape(), String.format(
                        "The `%s` error was added to the `%s` service, making this error common "
                        + "to all operations within the service. This is backward-compatible if the "
                        + "error is only encountered as a result of a change in behavior of "
                        + "the client (for example, the client sends a new "
                        + "parameter to an operation).",
                        id, change.getShapeId())));
            }
        }

        return events;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



