EmulatorResult

scalus.cardano.node.emulator.EmulatorResult
See theEmulatorResult companion object
final class EmulatorResult[E, A]

The outcome of an Emulator operation that can fail, usable from Java, spec [SF-5].

A null-based view over Either[E, A], as scalus.cardano.node.SubmitResult is for a submission: Java callers read isSuccess, then getValueOrNull or getErrorOrNull, with no pattern matching. Scala code should keep using the Either-returning members of scalus.cardano.node.EmulatorBase (or toEither).

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

The error on failure, null on success.

The error on failure, null on success.

Attributes

The value on success, null on failure.

The value on success, null on failure.

Attributes

def isSuccess: Boolean
def toEither: Either[E, A]

Scala escape hatch.

Scala escape hatch.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any