public Optional<StructureShape> getOptionalError() {
        return Optional.ofNullable(error);
    }
Deprecated in favor of {@link ClientEndpointDiscoveryInfo#getOptionalError()}.
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/clientendpointdiscovery/ClientEndpointDiscoveryInfo.java