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) {
|
||||
try {
|
||||
actual.onNext(t)
|
||||
} catch(e: Throwable) {
|
||||
if(actual is ActionSubscriber) {
|
||||
} catch (e: Throwable) {
|
||||
if (actual is ActionSubscriber) {
|
||||
// this Subscriber wraps an ActionSubscriber which is always a leaf Observer, then call user-defined onError
|
||||
Exceptions.throwOrReport(e, this)
|
||||
} else {
|
||||
@ -61,8 +61,7 @@ class FlowSafeSubscriber<T>(actual: Subscriber<in T>) : SafeSubscriber<T>(actual
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@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