Halt

interface Halt : Solution

A type representing a failed (halted) solution because of an exception

Functions

Link copied to clipboard
open override fun asHalt(): Solution.Halt

Casts the current Solution to Halt, if possible, or returns null otherwise

Link copied to clipboard
open fun asNo(): Solution.No?

Casts the current Solution to No, if possible, or returns null otherwise

Link copied to clipboard
open fun asYes(): Solution.Yes?

Casts the current Solution to Yes, if possible, or returns null otherwise

Link copied to clipboard
open fun castToHalt(): Solution.Halt

Casts the current Solution to Halt, if possible

Link copied to clipboard
open fun castToNo(): Solution.No

Casts the current Solution to No, if possible

Link copied to clipboard
open fun castToYes(): Solution.Yes

Casts the current Solution to Yes, if possible

Link copied to clipboard
abstract override fun cleanUp(): Solution.Halt
Link copied to clipboard
abstract fun copy(query: <ERROR CLASS> = this.query, exception: ResolutionException = this.exception): Solution.Halt
Link copied to clipboard
abstract fun replaceTags(tags: Map<String, Any>): Solution.Halt
Link copied to clipboard
abstract fun valueOf(variable: <ERROR CLASS>): <ERROR CLASS>?
abstract fun valueOf(variable: String): <ERROR CLASS>?
Link copied to clipboard
abstract fun <T> whenIs(    yes: (Solution.Yes) -> T? = null,     no: (Solution.No) -> T? = null,     halt: (Solution.Halt) -> T? = null,     otherwise: (Solution) -> T = { throw IllegalStateException("Cannot handle solution $it") }): T

Properties

Link copied to clipboard
abstract override val exception: ResolutionException
Link copied to clipboard
abstract val isHalt: Boolean
Link copied to clipboard
abstract val isNo: Boolean
Link copied to clipboard
abstract val isYes: Boolean
Link copied to clipboard
abstract val query: <ERROR CLASS>

The query to which the solution refers

Link copied to clipboard
abstract val solvedQuery: <ERROR CLASS>?

The Struct representing the solution, or null in case of a non-successful solution

Link copied to clipboard
abstract val substitution: <ERROR CLASS>

The substitution that has been applied to find the solution, or a failed substitution