Class DynamicResult.Error<T>
java.lang.Object
com.pranavpandey.android.dynamic.util.concurrent.DynamicResult<T>
com.pranavpandey.android.dynamic.util.concurrent.DynamicResult.Error<T>
- Type Parameters:
T
- The type of the error.
- Enclosing class:
- 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 inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicResult
data
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the exception associated with this result.void
setException
(Exception exception) Set the data associated with this result.Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicResult
getData, setData
-
Field Details
-
exception
The exception associated with this result.
-
-
Constructor Details
-
Error
Constructor to initialize an object of this class.- Parameters:
exception
- The exception for this error.
-
-
Method Details
-
getException
Get the exception associated with this result.- Returns:
- The exception associated with this result.
-
setException
Set the data associated with this result.- Parameters:
exception
- The exception to be set.
-