@Override
    protected Node createNode() {
        return Node.objectNodeBuilder()
                .sourceLocation(getSourceLocation())
                .withMember(OPERATION, Node.from(getOperation().toString()))
                .withOptionalMember(ERROR, getOptionalError().map(error -> Node.from(error.toString())))
                .build();
    }
Deprecated in favor of {@link ClientEndpointDiscoveryTrait#getOptionalError}.
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/clientendpointdiscovery/ClientEndpointDiscoveryTrait.java