title: Extract Throwable from LoadResult.Error of PagingSource
body: <p>My <em>PagingSource</em> load some data. Documentation recomended catch exceptions like this, for some processing <em>LoadResult.Error</em> in future.</p>
  <pre><code> override suspend fun load(params: LoadParams&lt;Int&gt;): LoadResult&lt;Int, Item&gt; {
              return try {
                  ...
                  throw SomeCatchableException()
                  ...
              } catch (e: SomeCatchableException) {
                  LoadResult.Error(e)
              } catch (e: AnotherCatchableException) {
                  LoadResult.Error(e)
              }
          }
  </code></pre>
  <p>But when i try process it this way:</p>
  <pre><code>(adapter as PagingDataAdapter).loadStateFlow.collectLatest { loadState -&gt;
  
                  when (loadState.refresh) {
                      is LoadState.Loading -&gt; {
                          // *do something in UI*
                      }
                      is LoadState.Error -&gt; {
                          // *here i wanna do something different actions, whichever exception type*
                      }
                  }
              }
  </code></pre>
  <p>I want to know which Exteption will be catched, coz i pass it <em>(Throwable)</em> in params <em>LoadResult.Error(e)</em>.</p>
  <p>How do i know the type of the exception in loadState processing?</p>