I'm trying to write error handling for a regex which comes from the user, so I need to be polite, and say what I can. However, I can't seem to find any documentation on what errors regex might throw. Where am I supposed to look?
(I can't even figure out where the Regex sources are, which is its own problem.)