Class TelegramApiRequestException

    • Constructor Detail

      • TelegramApiRequestException

        public TelegramApiRequestException​(String message)
      • TelegramApiRequestException

        public TelegramApiRequestException​(String message,
                                           org.json.JSONObject object)
      • TelegramApiRequestException

        public TelegramApiRequestException​(String message,
                                           ApiResponse response)
      • TelegramApiRequestException

        public TelegramApiRequestException​(String message,
                                           Throwable cause)
    • Method Detail

      • getApiResponse

        public String getApiResponse()
      • getErrorCode

        public Integer getErrorCode()
      • getMessage

        public String getMessage()
        More detailed error description.
        Overrides:
        getMessage in class Throwable
        Returns:
        assembled response code and reason
      • toString

        public String toString()
        Just left as backward compatibility if anybody used this in version 5.2.0 or older.
        Overrides:
        toString in class Throwable
        Returns:
        the getMessage string