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
Author:
Natanim
See Also:
  • Field Details

    • ok

      private boolean ok
    • description

      private final String description
    • errorCode

      private final Integer errorCode
    • parameters

      private ResponseParameters parameters
    • name

      private String name
  • Constructor Details

    • TelegramApiException

      public TelegramApiException(ApiResponse<?> response)
    • TelegramApiException

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

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