MyBusinessError

class MyBusinessError(    var code: Int,     var message: String?,     val throwable: Throwable? = null,     val data: Any? = null) : Error

Constructors

Link copied to clipboard
fun MyBusinessError(    code: Int,     message: String?,     throwable: Throwable? = null,     data: Any? = null)

Types

Link copied to clipboard
annotation class ErrorCode

Properties

Link copied to clipboard
val data: Any? = null

Inherited properties

Link copied to clipboard
var code: Int

The error code.

Link copied to clipboard
var message: String?

The description of the error.

Link copied to clipboard
val throwable: Throwable? = null

Throwable in the case if an exception has been encountered

Inherited functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String