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>

public static final class DynamicResult.Error<T> extends DynamicResult<T>
The result class to represent the error.
  • Field Details

    • exception

      public Exception exception
      The exception associated with this result.
  • Constructor Details

    • Error

      public Error(@Nullable Exception exception)
      Constructor to initialize an object of this class.
      Parameters:
      exception - The exception for this error.
  • Method Details

    • getException

      @Nullable public Exception getException()
      Get the exception associated with this result.
      Returns:
      The exception associated with this result.
    • setException

      public void setException(@Nullable Exception exception)
      Set the data associated with this result.
      Parameters:
      exception - The exception to be set.