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

NoOpAtriumErrorAdjusterCommon

abstract class NoOpAtriumErrorAdjusterCommon : AtriumErrorAdjuster (source)

An implementation of an AtriumErrorAdjuster which adjusts nothing and can be used by the platforms to provide the actual type of NoOpAtriumErrorAdjuster.

Constructors

<init>

NoOpAtriumErrorAdjusterCommon()

An implementation of an AtriumErrorAdjuster which adjusts nothing and can be used by the platforms to provide the actual type of NoOpAtriumErrorAdjuster.

Functions

adjust

open 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

Adjusts parts of the given throwable but not its stack trace.

Inherited Functions

adjustStackTrace

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

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