Class APIException

  • All Implemented Interfaces:
    java.io.Serializable

    public class APIException
    extends java.lang.Exception
    Replication of ApiException class from GoogleSignIn Google's ApiException class API reference can be found at https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException Version: Google Play Services - 20.3.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      APIException​(int statusCode)  
      APIException​(int statusCode, java.lang.String message)  
      APIException​(int statusCode, java.lang.String message, java.lang.Throwable cause)  
      APIException​(int statusCode, java.lang.Throwable cause)  
      APIException​(Status status)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      int getStatusCode()
      Get status code of the APIException
      java.lang.String getStatusMessage()
      Get status message of the APIException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • APIException

        public APIException​(int statusCode,
                            java.lang.String message)
      • APIException

        public APIException​(int statusCode)
      • APIException

        public APIException​(int statusCode,
                            java.lang.String message,
                            java.lang.Throwable cause)
      • APIException

        public APIException​(int statusCode,
                            java.lang.Throwable cause)
      • APIException

        public APIException​(Status status)
    • Method Detail

      • getStatusMessage

        public java.lang.String getStatusMessage()
        Get status message of the APIException
        Returns:
        String: status message
      • getStatusCode

        public int getStatusCode()
        Get status code of the APIException
        Returns:
        int: status code
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable