Missing throws
This commit is contained in:
parent
57a8dd4a1f
commit
376cd1cb36
@ -54,6 +54,7 @@ class SimpleHttpRendezvousTransport(rendezvousUri: String?) : RendezvousTranspor
|
|||||||
return SimpleHttpRendezvousTransportDetails(uri)
|
return SimpleHttpRendezvousTransportDetails(uri)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Throws(RendezvousError::class)
|
||||||
override suspend fun send(contentType: MediaType, data: ByteArray) {
|
override suspend fun send(contentType: MediaType, data: ByteArray) {
|
||||||
if (cancelled) {
|
if (cancelled) {
|
||||||
throw IllegalStateException("Rendezvous cancelled")
|
throw IllegalStateException("Rendezvous cancelled")
|
||||||
@ -96,6 +97,7 @@ class SimpleHttpRendezvousTransport(rendezvousUri: String?) : RendezvousTranspor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Throws(RendezvousError::class)
|
||||||
override suspend fun receive(): ByteArray? {
|
override suspend fun receive(): ByteArray? {
|
||||||
if (cancelled) {
|
if (cancelled) {
|
||||||
throw IllegalStateException("Rendezvous cancelled")
|
throw IllegalStateException("Rendezvous cancelled")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user