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 SummaryFieldsModifier and TypeFieldDescriptionintboolean
- 
Constructor SummaryConstructorsConstructorDescriptionTelegramApiException(int error_code, String description, ResponseParameters parameters, String name) TelegramApiException(int error_code, String description, String name) TelegramApiException(ApiResponse response) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TelegramApiExceptionthrowIt(ApiResponse<T> response) Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
okpublic boolean ok
- 
description
- 
error_codepublic int error_code
- 
parameters
 
- 
- 
Constructor Details- 
TelegramApiException
- 
TelegramApiException
- 
TelegramApiExceptionpublic TelegramApiException(int error_code, String description, ResponseParameters parameters, String name) 
 
- 
- 
Method Details- 
throwIt
 
-