Skip to content

FluxbaseException

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.core/FluxbaseException

[jvm]
class FluxbaseException(val status: Int, val code: String? = null, val details: Any? = null, message: String) : RuntimeException

A Fluxbase API error. Mirrors FluxbaseError from sdk/src/types.ts:235.

Thrown by the transport when a response is not ok (status >= 400). Higher layers (query builder, auth) catch this and convert it into FluxbaseResponse.Error.

FluxbaseException [jvm]
constructor(status: Int, code: String? = null, details: Any? = null, message: String)
Name Summary
cause [jvm]
open val cause: Throwable?
code [jvm]
val code: String?
details [jvm]
val details: Any?
message [jvm]
open val message: String?
status [jvm]
val status: Int