Class DynamicResult.Error<T>
- java.lang.Object
-
- com.pranavpandey.android.dynamic.util.concurrent.DynamicResult<T>
-
- com.pranavpandey.android.dynamic.util.concurrent.DynamicResult.Error<T>
-
- Enclosing class:
- DynamicResult<T>
public static final class DynamicResult.Error<T> extends DynamicResult<T>
The result class to represent the error.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicResult
DynamicResult.Error<T>, DynamicResult.Progress<T>, DynamicResult.Success<T>
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.ExceptionexceptionThe exception associated with this result.-
Fields inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicResult
data
-
-
Constructor Summary
Constructors Constructor Description Error(java.lang.Exception exception)Constructor to initialize an object of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ExceptiongetException()Get the exception associated with this result.voidsetException(java.lang.Exception exception)Set the data associated with this result.-
Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicResult
getData, setData
-
-
-
-
Method Detail
-
getException
@Nullable public java.lang.Exception getException()
Get the exception associated with this result.- Returns:
- The exception associated with this result.
-
setException
public void setException(@Nullable java.lang.Exception exception)Set the data associated with this result.- Parameters:
exception- The exception to be set.
-
-