mirror of
https://github.com/corda/corda.git
synced 2025-02-25 19:11:45 +00:00
Minor code formatting
This commit is contained in:
parent
cfcca4ac18
commit
f27e0641b4
@ -23,8 +23,8 @@ class FlowSafeSubscriber<T>(actual: Subscriber<in T>) : SafeSubscriber<T>(actual
|
|||||||
override fun onNext(t: T) {
|
override fun onNext(t: T) {
|
||||||
try {
|
try {
|
||||||
actual.onNext(t)
|
actual.onNext(t)
|
||||||
} catch(e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
if(actual is ActionSubscriber) {
|
if (actual is ActionSubscriber) {
|
||||||
// this Subscriber wraps an ActionSubscriber which is always a leaf Observer, then call user-defined onError
|
// this Subscriber wraps an ActionSubscriber which is always a leaf Observer, then call user-defined onError
|
||||||
Exceptions.throwOrReport(e, this)
|
Exceptions.throwOrReport(e, this)
|
||||||
} else {
|
} else {
|
||||||
@ -61,8 +61,7 @@ class FlowSafeSubscriber<T>(actual: Subscriber<in T>) : SafeSubscriber<T>(actual
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
class OnNextFailedException(message: String, cause: Throwable): OnErrorNotImplementedException(message, cause)
|
class OnNextFailedException(message: String, cause: Throwable) : OnErrorNotImplementedException(message, cause)
|
Loading…
x
Reference in New Issue
Block a user