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
Describes Telegram error
- Since:
- 3 March 2025
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
boolean
-
Constructor Summary
ConstructorsConstructorDescriptionTelegramApiException
(int error_code, String description, ResponseParameters parameters, String name) TelegramApiException
(int error_code, String description, String name) TelegramApiException
(ApiResponse response) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TelegramApiException
throwIt
(ApiResponse<T> response) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ok
public boolean ok -
description
-
error_code
public int error_code -
parameters
-
-
Constructor Details
-
TelegramApiException
-
TelegramApiException
-
TelegramApiException
public TelegramApiException(int error_code, String description, ResponseParameters parameters, String name)
-
-
Method Details
-
throwIt
-