public static class InvalidRequest extends java.lang.Object
InvalidRequestexception indicates that the request is malformed in such a way that the server is unable to process it.
InvalidArgumentexception would be used instead.
NotFoundexception would be used instead.
Some transport protocols (for example JSON-RPC) include their own mechanism for reporting these kinds of errors, and the API infrastructure for a programming language may expose the errors using a language specific mechanism, so this exception might not be used.