AFException

constructor(message: String? = null, isError: Boolean? = null, detail: String? = null, data: String? = null, errors: List<String?>? = null, httpCode: Int? = null)

Creates an AFException with the given message.


constructor(message: String? = null, isError: Boolean? = null, detail: String? = null, data: String? = null, errors: List<String?>? = null, httpCode: Int? = null, cause: Throwable?)

Creates an AFException that carries the underlying cause, so consumers can classify the failure (offline, timeout, TLS, decode) from the original exception instead of pattern-matching on message text.