errorOnLoading

inline fun <T> ApiResult<T>.errorOnLoading(exception: () -> Exception = { NotFinishedException() }): ApiResult<T>

Makes this result an Error if this result is Loading