Open
Description
As discussed in #4236, ui.clipboard
warns and returns an empty string if the clipboard API isn't available. I think it should raise instead so that the user code can decide how to handle the error case. As this is technically a breaking change, this issue is scheduled for 3.0.