public List<ShapeId> getErrors() {
        return errors;
    }
<p>Gets a list of the error shape IDs bound directly to the operation
that can be encountered.

<p>This DOES NOT include errors that are common to a service. Operations
can be bound to multiple services, so common service errors cannot be
returned by this method. Use {@link #getErrors(ServiceShape)} or
{@link OperationIndex#getErrors(ToShapeId, ToShapeId)} to get all of the
errors an operation can encounter when used within a service.</p>

<p>Each returned {@link ShapeId} must resolve to a
{@link StructureShape} that is targeted by an error trait; however,
this is only guaranteed after a model is validated.</p>

@return Returns the errors.
@see #getErrors(ServiceShape)
@see OperationIndex#getErrors(ToShapeId, ToShapeId)
smithy-model/src/main/java/software/amazon/smithy/model/shapes/OperationShape.java