getOwnDescription

@Nullable
abstract fun getOwnDescription(): @Nullable String(source)

Returns a long description of this failure node, excluding the descriptions of its causes. For example, the failure header, its stack frames, and any suppressed exceptions, but not the descriptions of the failures returned by getCauses.

Unlike getDescription, which may contain the text of the whole cause subtree, this method can be used to inspect the description of every node in a failure tree without processing cause descriptions repeatedly.

When using a target Gradle version earlier than 9.7.0, this method returns null.

Return

a long description of this failure node, or null if it is not available

Since

9.8.0