Package org.greenrobot.eventbus.util
Class ThrowableFailureEvent
- java.lang.Object
-
- org.greenrobot.eventbus.util.ThrowableFailureEvent
-
- All Implemented Interfaces:
HasExecutionScope
public class ThrowableFailureEvent extends java.lang.Object implements HasExecutionScope
A generic failure event, which can be used by apps to propagate thrown exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleansuppressErrorUiprotected java.lang.Throwablethrowable
-
Constructor Summary
Constructors Constructor Description ThrowableFailureEvent(java.lang.Throwable throwable)ThrowableFailureEvent(java.lang.Throwable throwable, boolean suppressErrorUi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetExecutionScope()java.lang.ThrowablegetThrowable()booleanisSuppressErrorUi()voidsetExecutionScope(java.lang.Object executionContext)
-
-
-
Constructor Detail
-
ThrowableFailureEvent
public ThrowableFailureEvent(java.lang.Throwable throwable)
-
ThrowableFailureEvent
public ThrowableFailureEvent(java.lang.Throwable throwable, boolean suppressErrorUi)- Parameters:
suppressErrorUi- true indicates to the receiver that no error UI (e.g. dialog) should now displayed.
-
-
Method Detail
-
getThrowable
public java.lang.Throwable getThrowable()
-
isSuppressErrorUi
public boolean isSuppressErrorUi()
-
getExecutionScope
public java.lang.Object getExecutionScope()
- Specified by:
getExecutionScopein interfaceHasExecutionScope
-
setExecutionScope
public void setExecutionScope(java.lang.Object executionContext)
- Specified by:
setExecutionScopein interfaceHasExecutionScope
-
-