Class ApiResponse<T>

  • Type Parameters:
    T - The response

    public class ApiResponse<T>
    extends java.lang.Object
    Represents a API response with an optional throwable.
    Author:
    Maximilian Dorn
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiResponse​(T data, java.lang.Throwable error)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getData()  
      java.lang.Throwable getError()  
      • Methods inherited from class java.lang.Object

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

      • ApiResponse

        public ApiResponse​(T data,
                           java.lang.Throwable error)
    • Method Detail

      • getData

        public T getData()
      • getError

        public java.lang.Throwable getError()