public List<StructureShape> getErrors(ToShapeId service, ToShapeId operation) {
        Set<StructureShape> result = new LinkedHashSet<>(getErrors(service));
        result.addAll(getErrors(operation));
        return new ArrayList<>(result);
    }
Gets the list of error structures defined on an operation,
including any common errors inherited from a service shape.

<p>An empty list is returned if the operation is not found or
has no errors.

@param service Service shape to inherit common errors from.
@param operation Operation to get the errors of.
@return Returns the list of error structures, or an empty list.
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/OperationIndex.java