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())Content copied to clipboard