doc / ch.tutteli.atrium.reporting.erroradjusters / MultiAtriumErrorAdjuster

MultiAtriumErrorAdjuster

expect class MultiAtriumErrorAdjuster : AtriumErrorAdjuster (source)

Represents an AtriumErrorAdjuster which incorporates several AtriumErrorAdjuster and executes one after another during adjustment in the given order.

FirstAdjuster
The first adjuster which shall be used.

SecondAdjuster
The second adjuster which shall be used.

OtherAdjusters
The other adjusters which shall be used.

Constructors

<init>

MultiAtriumErrorAdjuster(firstAdjuster: AtriumErrorAdjuster, secondAdjuster: AtriumErrorAdjuster, otherAdjusters: List<AtriumErrorAdjuster>)

Represents an AtriumErrorAdjuster which incorporates several AtriumErrorAdjuster and executes one after another during adjustment in the given order.

Functions

adjustStackTrace

fun adjustStackTrace(stackTrace: Sequence<StackTraceElement>): Sequence<StackTraceElement>

Adjusts the given Throwable.stackTrace in some way or another.

toString

fun toString(): String

Inherited Functions

adjust

fun adjust(throwable: Throwable): Unit

Adjusts the given throwable - typically this involves filtering the stack trace (stackTrace in JVM, stack in JS) in some way or another as well as the stack traces of a Throwable.cause and other stack traces (e.g. stack traces of suppressed throwable in JVM).

adjustOtherThanStacks

open fun adjustOtherThanStacks(throwable: Throwable): Unit

Does nothing (no adjustments) - override in subclass if you want a different behaviour.

adjustStackTrace

abstract fun adjustStackTrace(stackTrace: Sequence<StackTraceElement>): Sequence<StackTraceElement>

Adjusts the given Throwable.stackTrace in some way or another.