PenicillinException

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.

Constructors

Link copied to clipboard
fun PenicillinException(localizedString: LocalizedString)
Link copied to clipboard
fun PenicillinException(    localizedString: LocalizedString,     cause: Throwable?,     request: HttpRequest?,     response: HttpResponse?,     vararg args: Any?)

Properties

Link copied to clipboard
open override val cause: Throwable?

The cause Throwable, or null.

Link copied to clipboard
val localizedString: LocalizedString

Original Localized string.

Link copied to clipboard
open override val message: String?
Link copied to clipboard
open val request: HttpRequest?

Executed HttpRequest, or null.

Link copied to clipboard
open val response: HttpResponse?

Executed HttpResponse, or null.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
val PenicillinException.rateLimit: RateLimit?

Twitter API rate limit. If response header does not provide such information or response is null, returns null.