-
public interface FailureLoggingProviderAn interface to provide the logging failures functionality.
-
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> TwithLoggingOnFailure(Function0<T> action)Invokes the given action and logs if it fails. abstract UnitlogStackTrace(Throwable error)Logs the error's stacktrace. abstract UnitlogDescriptionAndThrow(Throwable error, Matcher<View> viewMatcher)Logs the error description got by viewMatcher and throws the error. -
-
Method Detail
-
withLoggingOnFailure
abstract <T extends Any> T withLoggingOnFailure(Function0<T> action)
Invokes the given action and logs if it fails.
- Parameters:
action- the action to invoke.
-
logStackTrace
abstract Unit logStackTrace(Throwable error)
Logs the error's stacktrace.
- Parameters:
error- the error to get stacktrace from.
-
logDescriptionAndThrow
abstract Unit logDescriptionAndThrow(Throwable error, Matcher<View> viewMatcher)
Logs the error description got by viewMatcher and throws the error.
- Parameters:
error- the error to be described.viewMatcher- the view matcher to get description from.
-
-
-
-