Skip to content

Commit

Permalink
add throws declaration to Invoker#invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
robinfriedli committed Apr 16, 2022
1 parent 1182ac2 commit dfa7dcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/net/robinfriedli/exec/Invoker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ interface Invoker {
@Throws(Exception::class)
fun <T> invoke(mode: Mode, task: Callable<T>): T

@Throws(Exception::class)
fun <T> invoke(task: Callable<T>): T {
return invoke(Mode.empty, task)
}
Expand Down

0 comments on commit dfa7dcd

Please sign in to comment.