All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.org.onflow.flow.sdk.FlowException.kt Maven / Gradle / Ivy

package org.onflow.flow.sdk

class FlowException : RuntimeException {
    constructor() : super()
    constructor(message: String) : super(message)
    constructor(message: String, cause: Throwable) : super(message, cause)
    constructor(cause: Throwable) : super(cause)

    private val executionErrorCode: Int? get() = message?.let { parseErrorCode(it) }

    val executionError: FlowError? get() = executionErrorCode?.let { FlowError.forErrorCode(it) }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy