Package dev.inmo.tgbotapi.bot.exceptions

Types

Link copied to clipboard
sealed class BotException : IOException, CopyableThrowable<BotException>
Link copied to clipboard
class CommonBotException(message: String = "Something went wrong", cause: Throwable? = null) : BotException
Link copied to clipboard
class CommonRequestException(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
class GetUpdatesConflict(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
class InvalidPhotoDimensionsException(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
class MessageIsNotModifiedException(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
class MessageToEditNotFoundException(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
class ReplyMessageNotFoundException(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
sealed class RequestException : BotException
Link copied to clipboard
class TooMuchRequestsException(    val retryAfter: RetryAfterError,     val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
class UnauthorizedException(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException
Link copied to clipboard
class WrongFileIdentifierException(    val response: Response,     val plainAnswer: String,     message: String?,     cause: Throwable?) : RequestException

Functions

Link copied to clipboard
fun newRequestException(    response: Response,     plainAnswer: String,     message: String? = null,     cause: Throwable? = null): RequestException