Error

kyo.Result$package.Result.Error
See theError companion object
sealed abstract class Error[+E]

Represents an error in a Result.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Fail[E]
class Panic

Members list

Value members

Abstract methods

def getFailure: E | Throwable

Gets the failure value.

Gets the failure value.

Attributes

Returns

The error value or exception

Concrete methods

def exception(using ev: E <:< Throwable): Throwable
Extension method from Result

Gets the exception from an Error.

Gets the exception from an Error.

Value parameters

ev

Evidence that E is a subtype of Throwable

Attributes

Returns

The exception