Give a better exception if the callback can't be used.