static NodeDeserializationException fromReflectiveContext(
            Type into,
            String pointer,
            Node node,
            ReflectiveOperationException previous,
            String message
    ) {
        if (previous.getCause() instanceof NodeDeserializationException) {
            return (NodeDeserializationException) previous.getCause();
        } else {
            return fromContext(into, pointer, node, previous, message);
        }
    }
Creates a DeserializationException exception from a caught ReflectiveOperationException.

@param into The type being deserialized into.
@param pointer The JSON pointer to show the context where the error occurred.
@param node The Node that could not be deserialized.
@param previous The previous exception that was encountered (or null).
@param message The message to use in the exception (or null to include no extra message).
@return Returns the created exception.
smithy-model/src/main/java/software/amazon/smithy/model/node/NodeDeserializationException.java