Package dev.inmo.tgbotapi.bot.exceptions

Types

Link copied to clipboard
class CommonRequestException(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
class GetUpdatesConflict(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
class InvalidPhotoDimensionsException(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
class MessageIsNotModifiedException(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
class MessageToEditNotFoundException(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
class ReplyMessageNotFoundException(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
sealed class RequestException : IOException
Link copied to clipboard
class TooMuchRequestsException(    val retryAfter: RetryAfterError,     val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
class UnauthorizedException(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException
Link copied to clipboard
class WrongFileIdentifierException(    val response: Response,     val plainAnswer: String,     message: String?,     val cause: Throwable?) : RequestException

Functions

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