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. Used as default failure event byAsyncExecutor
.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
suppressErrorUi
protected java.lang.Throwable
throwable
-
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.Object
getExecutionScope()
java.lang.Throwable
getThrowable()
boolean
isSuppressErrorUi()
void
setExecutionScope(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:
getExecutionScope
in interfaceHasExecutionScope
-
setExecutionScope
public void setExecutionScope(java.lang.Object executionContext)
- Specified by:
setExecutionScope
in interfaceHasExecutionScope
-
-