Skip to content

Commit

Permalink
Add exception that may be thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu committed Sep 6, 2024
1 parent 450c758 commit dabf408
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package io.github.droidkaigi.confsched.model

import androidx.compose.runtime.Composable
import io.github.droidkaigi.confsched.model.AppError
import io.github.droidkaigi.confsched.model.compositionlocal.LocalRepositories
import kotlinx.collections.immutable.PersistentList
import kotlinx.coroutines.flow.Flow
import kotlin.coroutines.cancellation.CancellationException

interface ContributorsRepository {

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
suspend fun refresh()

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package io.github.droidkaigi.confsched.model

import androidx.compose.runtime.Composable
import io.github.droidkaigi.confsched.model.AppError
import io.github.droidkaigi.confsched.model.compositionlocal.LocalRepositories
import kotlinx.collections.immutable.PersistentList
import kotlinx.coroutines.flow.Flow
import kotlin.coroutines.cancellation.CancellationException

interface EventMapRepository {

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
suspend fun refresh()

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.droidkaigi.confsched.model

import androidx.compose.runtime.Composable
import io.github.droidkaigi.confsched.model.AppError
import io.github.droidkaigi.confsched.model.compositionlocal.LocalRepositories
import kotlinx.collections.immutable.PersistentList
import kotlinx.coroutines.flow.Flow
Expand All @@ -9,7 +10,7 @@ import kotlin.coroutines.cancellation.CancellationException
public interface SponsorsRepository {
public fun getSponsorStream(): Flow<PersistentList<Sponsor>>

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
public suspend fun refresh()

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.droidkaigi.confsched.model

import androidx.compose.runtime.Composable
import io.github.droidkaigi.confsched.model.AppError
import io.github.droidkaigi.confsched.model.compositionlocal.LocalRepositories
import kotlinx.collections.immutable.PersistentList
import kotlinx.coroutines.flow.Flow
Expand All @@ -10,7 +11,7 @@ interface StaffRepository {

public fun staffs(): Flow<PersistentList<Staff>>

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
public suspend fun refresh()

@Composable
Expand Down

0 comments on commit dabf408

Please sign in to comment.