public Set<Shape> getErrorBindings(ToShapeId error) {
        return SetUtils.copyOf(boundErrorShapes.getOrDefault(error.toShapeId(), Collections.emptySet()));
    }
Gets all the operations and services that bind the given shape as an error.

@param error The structure that may be used as an error.
@return Returns a set of operations and services that bind the given error shape.
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/OperationIndex.java