# MiraclError
MiraclError<SUCCESS, FAIL> is an error response from the MIRACLTrust SDK. It provides a value of type FAIL and an optional exception.
data class MiraclError<SUCCESS, FAIL>(value: FAIL, exception: Exception?) : MiraclResult<SUCCESS, FAIL>
# Constructors
Name | Summary |
---|---|
MiraclError | fun <FAIL> MiraclError(value: FAIL, exception: Exception?) |
# Functions
Name | Summary |
---|---|
component1 | Content operator fun component1(): FAIL |
component2 | Content operator fun component2(): Exception? |
copy | Content fun copy(value: FAIL, exception: Exception?): MiraclError<SUCCESS, FAIL> |
equals | Content open operator override fun equals(other: Any?): Boolean |
hashCode | Content open override fun hashCode(): Int |
toString | Content open override fun toString(): String |
# Properties
Name | Summary |
---|---|
exception | val exception: Exception? |
value | val value: FAIL |