Class TelegramApiRequestException

All Implemented Interfaces:
Serializable

public class TelegramApiRequestException extends TelegramApiException
Version:
1.0 Exception thrown when something goes wrong in the api
Author:
Ruben Bermudez
See Also:
  • Constructor Details

    • 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 Details

    • getApiResponse

      public String getApiResponse()
    • getErrorCode

      public Integer getErrorCode()
    • getParameters

      public ResponseParameters getParameters()
    • 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