Package blue.starry.penicillin.core.exceptions

Types

Link copied to clipboard
open class PenicillinException(    val localizedString: LocalizedString,     val cause: Throwable?,     val request: HttpRequest?,     val response: HttpResponse?,     args: Any?) : RuntimeException

Base Penicillin exception class. All the exceptions are thrown from Penicillin inherits this class.

Link copied to clipboard
class PenicillinTwitterApiException(    val error: TwitterApiError,     val request: HttpRequest,     val response: HttpResponse) : PenicillinException

The PenicillinException class which is thrown when Twitter API error occurs.

class PenicillinTwitterMediaProcessingFailedError(    val error: Media.ProcessingInfo.Error,     val request: HttpRequest,     val response: HttpResponse) : PenicillinException

The PenicillinException class which is thrown when Twitter API error occurs.

Link copied to clipboard
data class TwitterApiError(    val code: Int,     val title: String,     val description: String,     val httpStatusCode: HttpStatusCode?)

Represents Twitter API error codes. Described in https://developer.twitter.com/en/docs/basics/response-codes.