Uses of Class
com.jtelegram.api.ex.TelegramException
-
-
Uses of TelegramException in com.jtelegram.api
Methods in com.jtelegram.api that return types with arguments of type TelegramException Modifier and Type Method Description static java.util.function.Consumer<TelegramException>
TelegramBotRegistry. getMinorGsonErrorHandler()
Method parameters in com.jtelegram.api with type arguments of type TelegramException Modifier and Type Method Description void
TelegramBotRegistry. registerBot(java.lang.String apiKey, java.util.function.BiConsumer<TelegramBot,TelegramException> callback)
Registers the bot and makes a request to telegram to verify the apiKey is correct This action will be performed on the bot's dedicated request queue, and thus a callback must be used.static void
TelegramBotRegistry. setMinorGsonErrorHandler(java.util.function.Consumer<TelegramException> minorGsonErrorHandler)
-
Uses of TelegramException in com.jtelegram.api.ex
Subclasses of TelegramException in com.jtelegram.api.ex Modifier and Type Class Description class
EventException
class
InvalidResponseException
This exception is called when the API returns a non-JSON responseclass
MessageBasedException
class
NetworkException
class
TelegramApiException
-
Uses of TelegramException in com.jtelegram.api.ex.handler
Methods in com.jtelegram.api.ex.handler with type parameters of type TelegramException Modifier and Type Method Description <T extends TelegramException>
DynamicErrorHandlerDynamicErrorHandler. when(java.lang.Class<T> clazz, java.util.function.Consumer<T> consumer)
Methods in com.jtelegram.api.ex.handler with parameters of type TelegramException Modifier and Type Method Description void
DynamicErrorHandler. accept(TelegramException e)
void
ErrorLogger. accept(TelegramException e)
-
Uses of TelegramException in com.jtelegram.api.requests
Method parameters in com.jtelegram.api.requests with type arguments of type TelegramException Modifier and Type Method Description GetFile.GetFileBuilder
GetFile.GetFileBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetMe.GetMeBuilder
GetMe.GetMeBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetUpdates.GetUpdatesBuilder
GetUpdates.GetUpdatesBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetUserProfilePhotos.GetUserProfilePhotosBuilder
GetUserProfilePhotos.GetUserProfilePhotosBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
Uses of TelegramException in com.jtelegram.api.requests.chat
Method parameters in com.jtelegram.api.requests.chat with type arguments of type TelegramException Modifier and Type Method Description GetChat.GetChatBuilder
GetChat.GetChatBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetChatAdministrators.GetChatAdministratorsBuilder
GetChatAdministrators.GetChatAdministratorsBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetChatMember.GetChatMemberBuilder
GetChatMember.GetChatMemberBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetChatMembersCount.GetChatMembersCountBuilder
GetChatMembersCount.GetChatMembersCountBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
LeaveChat.LeaveChatBuilder
LeaveChat.LeaveChatBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendChatAction.SendChatActionBuilder
SendChatAction.SendChatActionBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
Constructor parameters in com.jtelegram.api.requests.chat with type arguments of type TelegramException Constructor Description LeaveChat(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId)
SendChatAction(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, ChatAction action)
-
Uses of TelegramException in com.jtelegram.api.requests.chat.admin
Method parameters in com.jtelegram.api.requests.chat.admin with type arguments of type TelegramException Modifier and Type Method Description DeleteChatPhoto.DeleteChatPhotoBuilder
DeleteChatPhoto.DeleteChatPhotoBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
DeleteChatStickerSet.DeleteChatStickerSetBuilder
DeleteChatStickerSet.DeleteChatStickerSetBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
ExportChatInviteLink.ExportChatInviteLinkBuilder
ExportChatInviteLink.ExportChatInviteLinkBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
KickChatMember.KickChatMemberBuilder
KickChatMember.KickChatMemberBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
PinChatMessage.PinChatMessageBuilder
PinChatMessage.PinChatMessageBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
PromoteChatMember.PromoteChatMemberBuilder
PromoteChatMember.PromoteChatMemberBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
RestrictChatMember.RestrictChatMemberBuilder
RestrictChatMember.RestrictChatMemberBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetChatDescription.SetChatDescriptionBuilder
SetChatDescription.SetChatDescriptionBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetChatPhoto.SetChatPhotoBuilder
SetChatPhoto.SetChatPhotoBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetChatStickerSet.SetChatStickerSetBuilder
SetChatStickerSet.SetChatStickerSetBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetChatTitle.SetChatTitleBuilder
SetChatTitle.SetChatTitleBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
UnbanChatMember.UnbanChatMemberBuilder
UnbanChatMember.UnbanChatMemberBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
UnpinChatMessage.UnpinChatMessageBuilder
UnpinChatMessage.UnpinChatMessageBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
Constructor parameters in com.jtelegram.api.requests.chat.admin with type arguments of type TelegramException Constructor Description DeleteChatPhoto(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId)
DeleteChatStickerSet(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId)
KickChatMember(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Long userId, java.lang.Long untilDate)
PinChatMessage(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Integer messageId, java.lang.Boolean disableNotification)
PromoteChatMember(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Long userId, java.lang.Boolean canChangeInfo, java.lang.Boolean canPostMessages, java.lang.Boolean canEditMessages, java.lang.Boolean canDeleteMessages, java.lang.Boolean canInviteUsers, java.lang.Boolean canRestrictMembers, java.lang.Boolean canPinMessages, java.lang.Boolean canPromoteMembers)
RestrictChatMember(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Long userId, java.lang.Long untilDate, java.lang.Boolean canSendMessages, java.lang.Boolean canSendMediaMessages, java.lang.Boolean canSendOtherMessages, java.lang.Boolean canAddWebPagePreviews)
SetChatDescription(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.String description)
SetChatPhoto(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, InputFile photo)
SetChatStickerSet(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.String stickerSet)
SetChatTitle(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.String title)
UnbanChatMember(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Long userId)
UnpinChatMessage(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId)
-
Uses of TelegramException in com.jtelegram.api.requests.framework
Fields in com.jtelegram.api.requests.framework with type parameters of type TelegramException Modifier and Type Field Description protected java.util.function.Consumer<TelegramException>
AbstractTelegramRequest. errorHandler
Methods in com.jtelegram.api.requests.framework with parameters of type TelegramException Modifier and Type Method Description protected void
AbstractTelegramRequest. handleError(TelegramException ex)
Method parameters in com.jtelegram.api.requests.framework with type arguments of type TelegramException Modifier and Type Method Description void
AbstractTelegramRequest. setErrorHandler(java.util.function.Consumer<TelegramException> errorHandler)
Constructor parameters in com.jtelegram.api.requests.framework with type arguments of type TelegramException Constructor Description AbstractTelegramRequest(java.lang.String endPoint, java.util.function.Consumer<TelegramException> errorHandler)
UpdateTelegramRequest(java.lang.String endPoint, java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback)
-
Uses of TelegramException in com.jtelegram.api.requests.game
Method parameters in com.jtelegram.api.requests.game with type arguments of type TelegramException Modifier and Type Method Description GetGameHighScores.GetGameHighScoresBuilder
GetGameHighScores.GetGameHighScoresBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetGameScore.SetGameScoreBuilder
SetGameScore.SetGameScoreBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
Uses of TelegramException in com.jtelegram.api.requests.inline
Method parameters in com.jtelegram.api.requests.inline with type arguments of type TelegramException Modifier and Type Method Description AnswerCallbackQuery.AnswerCallbackQueryBuilder
AnswerCallbackQuery.AnswerCallbackQueryBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
AnswerInlineQuery.AnswerInlineQueryBuilder
AnswerInlineQuery.AnswerInlineQueryBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
Uses of TelegramException in com.jtelegram.api.requests.message
Method parameters in com.jtelegram.api.requests.message with type arguments of type TelegramException Modifier and Type Method Description DeleteMessage.DeleteMessageBuilder
DeleteMessage.DeleteMessageBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
ForwardMessage.ForwardMessageBuilder
ForwardMessage.ForwardMessageBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
StopMessageLiveLocation.StopMessageLiveLocationBuilder
StopMessageLiveLocation.StopMessageLiveLocationBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
Constructor parameters in com.jtelegram.api.requests.message with type arguments of type TelegramException Constructor Description DeleteMessage(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, int messageId)
-
Uses of TelegramException in com.jtelegram.api.requests.message.edit
Method parameters in com.jtelegram.api.requests.message.edit with type arguments of type TelegramException Modifier and Type Method Description EditMessageCaption.EditMessageCaptionBuilder
EditMessageCaption.EditMessageCaptionBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
EditMessageLiveLocation.EditMessageLiveLocationBuilder
EditMessageLiveLocation.EditMessageLiveLocationBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
EditMessageMedia.EditMessageMediaBuilder
EditMessageMedia.EditMessageMediaBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
EditMessageReplyMarkup.EditMessageReplyMarkupBuilder
EditMessageReplyMarkup.EditMessageReplyMarkupBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
EditTextMessage.EditTextMessageBuilder
EditTextMessage.EditTextMessageBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
Uses of TelegramException in com.jtelegram.api.requests.message.framework.req
Constructor parameters in com.jtelegram.api.requests.message.framework.req with type arguments of type TelegramException Constructor Description InputFileMessageUpdate(java.lang.String endPoint, java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback)
UpdatableChatRequest(java.lang.String endPoint, java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId)
UserAdminChatRequest(java.lang.String endPoint, java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, ChatId chatId, java.lang.Long userId)
-
Uses of TelegramException in com.jtelegram.api.requests.message.send
Method parameters in com.jtelegram.api.requests.message.send with type arguments of type TelegramException Modifier and Type Method Description SendAnimation.SendAnimationBuilder
SendAnimation.SendAnimationBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendAudio.SendAudioBuilder
SendAudio.SendAudioBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendContact.SendContactBuilder
SendContact.SendContactBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendDocument.SendDocumentBuilder
SendDocument.SendDocumentBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendGame.SendGameBuilder
SendGame.SendGameBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendInvoice.SendInvoiceBuilder
SendInvoice.SendInvoiceBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendLocation.SendLocationBuilder
SendLocation.SendLocationBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendMediaGroup.SendMediaGroupBuilder
SendMediaGroup.SendMediaGroupBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendPhoto.SendPhotoBuilder
SendPhoto.SendPhotoBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendSticker.SendStickerBuilder
SendSticker.SendStickerBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendText.SendTextBuilder
SendText.SendTextBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendVenue.SendVenueBuilder
SendVenue.SendVenueBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendVideo.SendVideoBuilder
SendVideo.SendVideoBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendVideoNote.SendVideoNoteBuilder
SendVideoNote.SendVideoNoteBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendVoice.SendVoiceBuilder
SendVoice.SendVoiceBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
Uses of TelegramException in com.jtelegram.api.requests.payment
Method parameters in com.jtelegram.api.requests.payment with type arguments of type TelegramException Modifier and Type Method Description AnswerPreCheckoutQuery.AnswerPreCheckoutQueryBuilder
AnswerPreCheckoutQuery.AnswerPreCheckoutQueryBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
AnswerShippingQuery.AnswerShippingQueryBuilder
AnswerShippingQuery.AnswerShippingQueryBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
Uses of TelegramException in com.jtelegram.api.requests.sticker
Method parameters in com.jtelegram.api.requests.sticker with type arguments of type TelegramException Modifier and Type Method Description AddSticker.AddStickerBuilder
AddSticker.AddStickerBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
CreateNewStickerSet.CreateNewStickerSetBuilder
CreateNewStickerSet.CreateNewStickerSetBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
DeleteSticker.DeleteStickerBuilder
DeleteSticker.DeleteStickerBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetStickerSet.GetStickerSetBuilder
GetStickerSet.GetStickerSetBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetStickerPosition.SetStickerPositionBuilder
SetStickerPosition.SetStickerPositionBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
UploadStickerFile.UploadStickerFileBuilder
UploadStickerFile.UploadStickerFileBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
Constructor parameters in com.jtelegram.api.requests.sticker with type arguments of type TelegramException Constructor Description AddSticker(java.util.function.Consumer<TelegramException> errorHandler, java.lang.Runnable callback, java.lang.Long userId, java.lang.String name, InputFile sticker, java.lang.String emojis, MaskPosition maskPosition)
-
Uses of TelegramException in com.jtelegram.api.requests.webhooks
Method parameters in com.jtelegram.api.requests.webhooks with type arguments of type TelegramException Modifier and Type Method Description DeleteWebhook.DeleteWebhookBuilder
DeleteWebhook.DeleteWebhookBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetWebhookInfo.GetWebhookInfoBuilder
GetWebhookInfo.GetWebhookInfoBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetWebhook.SetWebhookBuilder
SetWebhook.SetWebhookBuilder. errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
Uses of TelegramException in com.jtelegram.api.update
Methods in com.jtelegram.api.update that return types with arguments of type TelegramException Modifier and Type Method Description java.util.function.Consumer<TelegramException>
PollingUpdateProvider. getUpdateErrorHandler()
Method parameters in com.jtelegram.api.update with type arguments of type TelegramException Modifier and Type Method Description PollingUpdateProvider.PollingUpdateProviderBuilder
PollingUpdateProvider.PollingUpdateProviderBuilder. updateErrorHandler(java.util.function.Consumer<TelegramException> updateErrorHandler)
Constructor parameters in com.jtelegram.api.update with type arguments of type TelegramException Constructor Description PollingUpdateProvider(int sleepInterval, int timeout, long maxUpdateAge, java.util.List<UpdateType> allowedUpdates, java.util.function.Consumer<TelegramException> updateErrorHandler)
-