Class DynamicResult.Error<T>

  • Enclosing class:
    DynamicResult<T>

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

      Fields 
      Modifier and Type Field Description
      java.lang.Exception exception
      The 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.Exception getException()
      Get the exception associated with this result.
      void setException​(java.lang.Exception exception)
      Set the data associated with this result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • exception

        public java.lang.Exception exception
        The exception associated with this result.
    • Constructor Detail

      • Error

        public Error​(@Nullable
                     java.lang.Exception exception)
        Constructor to initialize an object of this class.
        Parameters:
        exception - The exception for this error.
    • 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.