Errors
Noteable error types:
OAuthErrorOAuthError is the base class for all exceptions thrown/returned by oauth2-server.
ServerErrorServerError is used to wrap unknown exceptions encountered during request processing.
InvalidArgumentErrorInvalidArgumentError is thrown when an invalid argument is encountered. This error indicates that the module is used incorrectly and should never be seen because of external errors.