API reference

HttpStatusException Class

Extends IOException
Modifiers: final
Exception that carries an HTTP status code. PakDownloader implementations should throw this (instead of a generic IOException) when the server returns a non-success HTTP status, so that PakDownloadManager can populate DownloadError.NetworkFailure.httpStatus.

Signature

class HttpStatusException(val statusCode: Int, message: String) : IOException

Constructors

HttpStatusException ( statusCode , message )
Signature
constructor(statusCode: Int, message: String)
Parameters
statusCode: Int  The HTTP response status code (e.g. 403, 404, 500).
message: String

Properties

cause : Throwable?
[Get]
Signature
open val cause: Throwable?
message : String?
[Get]
Signature
open val message: String?
statusCode : Int
[Get]
The HTTP response status code (e.g. 403, 404, 500).
Signature
val statusCode: Int

Methods

addSuppressed ( p0 )
Signature
fun addSuppressed(p0: Throwable)
Parameters
p0: Throwable
fillInStackTrace ()
Signature
open fun fillInStackTrace(): Throwable
Returns
Throwable
getLocalizedMessage ()
Signature
open fun getLocalizedMessage(): String
Returns
String
getStackTrace ()
Signature
open fun getStackTrace(): Array<StackTraceElement>
Returns
Array
getSuppressed ()
Signature
fun getSuppressed(): Array<Throwable>
Returns
Array
initCause ( p0 )
Signature
open fun initCause(p0: Throwable): Throwable
Parameters
p0: Throwable
Returns
Throwable
printStackTrace ()
Signature
open fun printStackTrace()
printStackTrace ( p0 )
Signature
open fun printStackTrace(p0: PrintStream)
Parameters
p0: PrintStream
printStackTrace ( p0 )
Signature
open fun printStackTrace(p0: PrintWriter)
Parameters
p0: PrintWriter
setStackTrace ( p0 )
Signature
open fun setStackTrace(p0: Array<StackTraceElement>)
Parameters
p0: Array