parentsFrom

open fun parentsFrom(source: Any): List<Origin>

Find the parents of the Origin that an object originated from. Checks if the source object is an Origin or OriginProvider and also searches exception stacks. Provides a list of all parents up to root Origin, starting with the most immediate parent.

Return

a list of parents or an empty list if the source is null, has noorigin, or no parent

Since

2.4.0

Parameters

source

the source object or null