Class TelegramApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.natanimn.telebof.exceptions.TelegramApiException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequest, FloodError, Forbidden

public class TelegramApiException extends RuntimeException
Describes Telegram error
Since:
3 March 2025
See Also:
  • Field Details

    • ok

      public boolean ok
    • description

      public String description
    • error_code

      public int error_code
    • parameters

      public ResponseParameters parameters
  • Constructor Details

    • TelegramApiException

      public TelegramApiException(ApiResponse response)
    • TelegramApiException

      public TelegramApiException(int error_code, String description, String name)
    • TelegramApiException

      public TelegramApiException(int error_code, String description, ResponseParameters parameters, String name)
  • Method Details