expect interface AtriumErrorAdjuster : AtriumErrorAdjusterCommon
Responsible to adjust a given Throwable (usually an AtriumError) for improved error reporting.
Typically this involves filtering the stack traces (stackTrace
in JVM, stack
in JS) in some way
or another (also the stack trace of the cause or suppressed Throwables).
abstract fun adjustStackTrace(stackTrace: Sequence<StackTraceElement>): Sequence<StackTraceElement>
Adjusts the given Throwable.stackTrace in some way or another. |
abstract fun adjust(throwable: Throwable): Unit
Adjusts the given throwable - typically this involves filtering the stack trace
( |
|
abstract fun adjustOtherThanStacks(throwable: Throwable): Unit
Adjusts parts of the given throwable but not its stack trace. |