Made the "throws" declaration of getWarps() more specific

It is very difficult to handle an Exception thrown by an API method when you don't have any way to **programatically** (without dirty stuff like string comparisons, so the message is not enough) distinguish errors and find out what's going on.
Merge pull request #460 from main--/2.9

Made the "throws" declaration of getWarps() more specific