reasonAs

inline fun <E : Enum<E>> reasonAs(): E?

Retrieves the failure reason as the specified enum type.

Return

The enum value if the reason is of the correct type, null otherwise

Parameters

E

The expected enum type