Class OAuth2ServiceException

  • All Implemented Interfaces:
    Serializable

    public class OAuth2ServiceException
    extends IOException
    Exception thrown to signal issues during communication with OAuth2 server.
    See Also:
    Serialized Form
    • Constructor Detail

      • OAuth2ServiceException

        public OAuth2ServiceException​(String message)
      • OAuth2ServiceException

        public OAuth2ServiceException​(String message,
                                      Integer httpStatusCode)
        Creates an exception.
        Parameters:
        message - the error message
        httpStatusCode - the status code of the HTTP service request
    • Method Detail

      • getHttpStatusCode

        public Integer getHttpStatusCode()
        Returns the HTTP status code of the failed OAuth2 service request or 0 e.g. in case the service wasn't called at all.
        Returns:
        status code or 0