TestError

A payload-free error for exercising failure paths without a domain dependency.

All instances compare equal, so a test can assert that a failure surfaced unchanged:

val result = runCatching { repository.load() }
assertEquals(TestError(), result.exceptionOrNull())

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int