OrchestrationError

class OrchestrationError(orchestrationStacks: Array<StackTraceElement>, cause: Throwable) : AssertionError

An exception that enhances test failure reporting by merging orchestration stack traces with execution stack traces.

This class is used in dynamic testing scenarios to provide clearer error traces when assertions fail. It combines the stack trace from the test orchestration framework with the actual execution stack trace, making it easier to debug test failures by showing both the test setup and the point of failure.

Example usage:

val test = captureDynamicTest("My Test") {
assertTrue(false) // This will throw AssertionError
}
// When the test fails, OrchestrationError will be thrown with merged stack traces

Parameters

orchestrationStacks

The stack trace elements from the test orchestration framework.

cause

The original Throwable that caused the failure, typically an AssertionError.

Constructors

Link copied to clipboard
constructor(orchestrationStacks: Array<StackTraceElement>, cause: Throwable)

Types

Link copied to clipboard
object Companion

Properties

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