Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit cf15b218 authored by Sebastiano Barezzi's avatar Sebastiano Barezzi
Browse files

Twelve: Result: `Error.throwable` exists too

Change-Id: Ie1bf82d27ecff23554e3c4127c2c1cf71cd4b057
parent 17292e61
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ sealed interface Result<T, E> {
     * The request failed.
     *
     * @param error The error
     * @param throwable An optional [Throwable] object
     */
    class Error<T, E>(val error: E, val throwable: Throwable? = null) : Result<T, E>