class HttpException
source · line 71public class HttpException public constructor(
/**
* The operation that failed.
*/
public val operation: String,
/**
* The affected protocol family.
*/
public val protocol: HttpProtocol,
/**
* Whether the failure affects the operation, one stream, or the connection.
*/
public val scope: HttpFailureScope,
/**
* The affected stream ID, or zero when no stream is associated.
*/
public val streamId: Int,
/**
* The protocol backend reporting the failure.
*/
public val backend: String,
/**
* The backend-specific numeric error code.
*/
public val code: Int,
/**
* The failure explanation.
*/
public val detail: String,
/**
* Whether input ended before required protocol bytes arrived.
*/
public val isUnexpectedEof: Boolean = false
) : Exception(Some(operation + ": " + detail))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
A protocol failure carrying operation, backend code, affected scope, stream identity, and unexpected-EOF information.
property code
source · line 95public val code: Int
get: public read-only
The backend-specific numeric error code.
property protocol
source · line 79public val protocol: HttpProtocol
get: public read-only
The affected protocol family.
property operation
source · line 75public val operation: String
get: public read-only
The operation that failed.
constructor constructor
source · line 71constructor(public val operation: String, public val protocol: HttpProtocol, public val scope: HttpFailureScope, public val streamId: Int, public val backend: String, public val code: Int, public val detail: String, public val isUnexpectedEof: Boolean = false)
parameter protocol
source · line 79public val protocol: HttpProtocol
parameter streamId
source · line 87public val streamId: Int
parameter backend
source · line 91public val backend: String
parameter scope
source · line 83public val scope: HttpFailureScope
parameter operation
source · line 75public val operation: String
parameter detail
source · line 99public val detail: String
parameter code
source · line 95public val code: Int
parameter isUnexpectedEof
source · line 103public val isUnexpectedEof: Boolean = false
property streamId
source · line 87public val streamId: Int
get: public read-only
The affected stream ID, or zero when no stream is associated.
property isUnexpectedEof
source · line 103public val isUnexpectedEof: Boolean = false
get: public read-only
Whether input ended before required protocol bytes arrived.
property scope
source · line 83public val scope: HttpFailureScope
get: public read-only
Whether the failure affects the operation, one stream, or the connection.
property backend
source · line 91public val backend: String
get: public read-only
The protocol backend reporting the failure.
property detail
source · line 99public val detail: String
get: public read-only
The failure explanation.