SafeSubscriber.smali 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. .class public final Lio/reactivex/subscribers/SafeSubscriber;
  2. .super Ljava/lang/Object;
  3. .source "SafeSubscriber.java"
  4. # interfaces
  5. .implements Lorg/reactivestreams/Subscriber;
  6. .implements Lorg/reactivestreams/Subscription;
  7. # annotations
  8. .annotation system Ldalvik/annotation/Signature;
  9. value = {
  10. "<T:",
  11. "Ljava/lang/Object;",
  12. ">",
  13. "Ljava/lang/Object;",
  14. "Lorg/reactivestreams/Subscriber<",
  15. "TT;>;",
  16. "Lorg/reactivestreams/Subscription;"
  17. }
  18. .end annotation
  19. # instance fields
  20. .field final actual:Lorg/reactivestreams/Subscriber;
  21. .annotation system Ldalvik/annotation/Signature;
  22. value = {
  23. "Lorg/reactivestreams/Subscriber<",
  24. "-TT;>;"
  25. }
  26. .end annotation
  27. .end field
  28. .field done:Z
  29. .field s:Lorg/reactivestreams/Subscription;
  30. # direct methods
  31. .method public constructor <init>(Lorg/reactivestreams/Subscriber;)V
  32. .locals 0
  33. .annotation system Ldalvik/annotation/Signature;
  34. value = {
  35. "(",
  36. "Lorg/reactivestreams/Subscriber<",
  37. "-TT;>;)V"
  38. }
  39. .end annotation
  40. .line 39
  41. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  42. .line 40
  43. iput-object p1, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  44. return-void
  45. .end method
  46. # virtual methods
  47. .method public cancel()V
  48. .locals 1
  49. .line 228
  50. :try_start_0
  51. iget-object v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  52. invoke-interface {v0}, Lorg/reactivestreams/Subscription;->cancel()V
  53. :try_end_0
  54. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
  55. goto :goto_0
  56. :catch_0
  57. move-exception v0
  58. .line 230
  59. invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  60. .line 231
  61. invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  62. :goto_0
  63. return-void
  64. .end method
  65. .method public onComplete()V
  66. .locals 1
  67. .line 168
  68. iget-boolean v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->done:Z
  69. if-eqz v0, :cond_0
  70. return-void
  71. :cond_0
  72. const/4 v0, 0x1
  73. .line 171
  74. iput-boolean v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->done:Z
  75. .line 173
  76. iget-object v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  77. if-nez v0, :cond_1
  78. .line 174
  79. invoke-virtual {p0}, Lio/reactivex/subscribers/SafeSubscriber;->onCompleteNoSubscription()V
  80. return-void
  81. .line 180
  82. :cond_1
  83. :try_start_0
  84. iget-object v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  85. invoke-interface {v0}, Lorg/reactivestreams/Subscriber;->onComplete()V
  86. :try_end_0
  87. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
  88. goto :goto_0
  89. :catch_0
  90. move-exception v0
  91. .line 182
  92. invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  93. .line 183
  94. invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  95. :goto_0
  96. return-void
  97. .end method
  98. .method onCompleteNoSubscription()V
  99. .locals 6
  100. .line 189
  101. new-instance v0, Ljava/lang/NullPointerException;
  102. const-string v1, "Subscription not set!"
  103. invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  104. const/4 v1, 0x1
  105. const/4 v2, 0x0
  106. const/4 v3, 0x2
  107. .line 192
  108. :try_start_0
  109. iget-object v4, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  110. sget-object v5, Lio/reactivex/internal/subscriptions/EmptySubscription;->INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
  111. invoke-interface {v4, v5}, Lorg/reactivestreams/Subscriber;->onSubscribe(Lorg/reactivestreams/Subscription;)V
  112. :try_end_0
  113. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1
  114. .line 200
  115. :try_start_1
  116. iget-object v4, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  117. invoke-interface {v4, v0}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
  118. :try_end_1
  119. .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
  120. goto :goto_0
  121. :catch_0
  122. move-exception v4
  123. .line 202
  124. invoke-static {v4}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  125. .line 204
  126. new-instance v5, Lio/reactivex/exceptions/CompositeException;
  127. new-array v3, v3, [Ljava/lang/Throwable;
  128. aput-object v0, v3, v2
  129. aput-object v4, v3, v1
  130. invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  131. invoke-static {v5}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  132. :goto_0
  133. return-void
  134. :catch_1
  135. move-exception v4
  136. .line 194
  137. invoke-static {v4}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  138. .line 196
  139. new-instance v5, Lio/reactivex/exceptions/CompositeException;
  140. new-array v3, v3, [Ljava/lang/Throwable;
  141. aput-object v0, v3, v2
  142. aput-object v4, v3, v1
  143. invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  144. invoke-static {v5}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  145. return-void
  146. .end method
  147. .method public onError(Ljava/lang/Throwable;)V
  148. .locals 8
  149. .line 126
  150. iget-boolean v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->done:Z
  151. if-eqz v0, :cond_0
  152. .line 127
  153. invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  154. return-void
  155. :cond_0
  156. const/4 v0, 0x1
  157. .line 130
  158. iput-boolean v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->done:Z
  159. .line 132
  160. iget-object v1, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  161. const/4 v2, 0x0
  162. const/4 v3, 0x2
  163. if-nez v1, :cond_1
  164. .line 133
  165. new-instance v1, Ljava/lang/NullPointerException;
  166. const-string v4, "Subscription not set!"
  167. invoke-direct {v1, v4}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  168. const/4 v4, 0x3
  169. .line 136
  170. :try_start_0
  171. iget-object v5, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  172. sget-object v6, Lio/reactivex/internal/subscriptions/EmptySubscription;->INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
  173. invoke-interface {v5, v6}, Lorg/reactivestreams/Subscriber;->onSubscribe(Lorg/reactivestreams/Subscription;)V
  174. :try_end_0
  175. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1
  176. .line 144
  177. :try_start_1
  178. iget-object v5, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  179. new-instance v6, Lio/reactivex/exceptions/CompositeException;
  180. new-array v7, v3, [Ljava/lang/Throwable;
  181. aput-object p1, v7, v2
  182. aput-object v1, v7, v0
  183. invoke-direct {v6, v7}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  184. invoke-interface {v5, v6}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
  185. :try_end_1
  186. .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
  187. goto :goto_0
  188. :catch_0
  189. move-exception v5
  190. .line 146
  191. invoke-static {v5}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  192. .line 148
  193. new-instance v6, Lio/reactivex/exceptions/CompositeException;
  194. new-array v4, v4, [Ljava/lang/Throwable;
  195. aput-object p1, v4, v2
  196. aput-object v1, v4, v0
  197. aput-object v5, v4, v3
  198. invoke-direct {v6, v4}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  199. invoke-static {v6}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  200. :goto_0
  201. return-void
  202. :catch_1
  203. move-exception v5
  204. .line 138
  205. invoke-static {v5}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  206. .line 140
  207. new-instance v6, Lio/reactivex/exceptions/CompositeException;
  208. new-array v4, v4, [Ljava/lang/Throwable;
  209. aput-object p1, v4, v2
  210. aput-object v1, v4, v0
  211. aput-object v5, v4, v3
  212. invoke-direct {v6, v4}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  213. invoke-static {v6}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  214. return-void
  215. :cond_1
  216. if-nez p1, :cond_2
  217. .line 154
  218. new-instance p1, Ljava/lang/NullPointerException;
  219. const-string v1, "onError called with null. Null values are generally not allowed in 2.x operators and sources."
  220. invoke-direct {p1, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  221. .line 158
  222. :cond_2
  223. :try_start_2
  224. iget-object v1, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  225. invoke-interface {v1, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
  226. :try_end_2
  227. .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_2
  228. goto :goto_1
  229. :catch_2
  230. move-exception v1
  231. .line 160
  232. invoke-static {v1}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  233. .line 162
  234. new-instance v4, Lio/reactivex/exceptions/CompositeException;
  235. new-array v3, v3, [Ljava/lang/Throwable;
  236. aput-object p1, v3, v2
  237. aput-object v1, v3, v0
  238. invoke-direct {v4, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  239. invoke-static {v4}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  240. :goto_1
  241. return-void
  242. .end method
  243. .method public onNext(Ljava/lang/Object;)V
  244. .locals 5
  245. .annotation system Ldalvik/annotation/Signature;
  246. value = {
  247. "(TT;)V"
  248. }
  249. .end annotation
  250. .line 67
  251. iget-boolean v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->done:Z
  252. if-eqz v0, :cond_0
  253. return-void
  254. .line 70
  255. :cond_0
  256. iget-object v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  257. if-nez v0, :cond_1
  258. .line 71
  259. invoke-virtual {p0}, Lio/reactivex/subscribers/SafeSubscriber;->onNextNoSubscription()V
  260. return-void
  261. :cond_1
  262. const/4 v0, 0x1
  263. const/4 v1, 0x0
  264. const/4 v2, 0x2
  265. if-nez p1, :cond_2
  266. .line 76
  267. new-instance p1, Ljava/lang/NullPointerException;
  268. const-string v3, "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
  269. invoke-direct {p1, v3}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  270. .line 78
  271. :try_start_0
  272. iget-object v3, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  273. invoke-interface {v3}, Lorg/reactivestreams/Subscription;->cancel()V
  274. :try_end_0
  275. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
  276. .line 84
  277. invoke-virtual {p0, p1}, Lio/reactivex/subscribers/SafeSubscriber;->onError(Ljava/lang/Throwable;)V
  278. return-void
  279. :catch_0
  280. move-exception v3
  281. .line 80
  282. invoke-static {v3}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  283. .line 81
  284. new-instance v4, Lio/reactivex/exceptions/CompositeException;
  285. new-array v2, v2, [Ljava/lang/Throwable;
  286. aput-object p1, v2, v1
  287. aput-object v3, v2, v0
  288. invoke-direct {v4, v2}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  289. invoke-virtual {p0, v4}, Lio/reactivex/subscribers/SafeSubscriber;->onError(Ljava/lang/Throwable;)V
  290. return-void
  291. .line 89
  292. :cond_2
  293. :try_start_1
  294. iget-object v3, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  295. invoke-interface {v3, p1}, Lorg/reactivestreams/Subscriber;->onNext(Ljava/lang/Object;)V
  296. :try_end_1
  297. .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
  298. goto :goto_0
  299. :catch_1
  300. move-exception p1
  301. .line 91
  302. invoke-static {p1}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  303. .line 93
  304. :try_start_2
  305. iget-object v3, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  306. invoke-interface {v3}, Lorg/reactivestreams/Subscription;->cancel()V
  307. :try_end_2
  308. .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_2
  309. .line 99
  310. invoke-virtual {p0, p1}, Lio/reactivex/subscribers/SafeSubscriber;->onError(Ljava/lang/Throwable;)V
  311. :goto_0
  312. return-void
  313. :catch_2
  314. move-exception v3
  315. .line 95
  316. invoke-static {v3}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  317. .line 96
  318. new-instance v4, Lio/reactivex/exceptions/CompositeException;
  319. new-array v2, v2, [Ljava/lang/Throwable;
  320. aput-object p1, v2, v1
  321. aput-object v3, v2, v0
  322. invoke-direct {v4, v2}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  323. invoke-virtual {p0, v4}, Lio/reactivex/subscribers/SafeSubscriber;->onError(Ljava/lang/Throwable;)V
  324. return-void
  325. .end method
  326. .method onNextNoSubscription()V
  327. .locals 6
  328. const/4 v0, 0x1
  329. .line 104
  330. iput-boolean v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->done:Z
  331. .line 105
  332. new-instance v1, Ljava/lang/NullPointerException;
  333. const-string v2, "Subscription not set!"
  334. invoke-direct {v1, v2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
  335. const/4 v2, 0x0
  336. const/4 v3, 0x2
  337. .line 108
  338. :try_start_0
  339. iget-object v4, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  340. sget-object v5, Lio/reactivex/internal/subscriptions/EmptySubscription;->INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
  341. invoke-interface {v4, v5}, Lorg/reactivestreams/Subscriber;->onSubscribe(Lorg/reactivestreams/Subscription;)V
  342. :try_end_0
  343. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1
  344. .line 116
  345. :try_start_1
  346. iget-object v4, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  347. invoke-interface {v4, v1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
  348. :try_end_1
  349. .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
  350. goto :goto_0
  351. :catch_0
  352. move-exception v4
  353. .line 118
  354. invoke-static {v4}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  355. .line 120
  356. new-instance v5, Lio/reactivex/exceptions/CompositeException;
  357. new-array v3, v3, [Ljava/lang/Throwable;
  358. aput-object v1, v3, v2
  359. aput-object v4, v3, v0
  360. invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  361. invoke-static {v5}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  362. :goto_0
  363. return-void
  364. :catch_1
  365. move-exception v4
  366. .line 110
  367. invoke-static {v4}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  368. .line 112
  369. new-instance v5, Lio/reactivex/exceptions/CompositeException;
  370. new-array v3, v3, [Ljava/lang/Throwable;
  371. aput-object v1, v3, v2
  372. aput-object v4, v3, v0
  373. invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  374. invoke-static {v5}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  375. return-void
  376. .end method
  377. .method public onSubscribe(Lorg/reactivestreams/Subscription;)V
  378. .locals 5
  379. .line 45
  380. iget-object v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  381. invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(Lorg/reactivestreams/Subscription;Lorg/reactivestreams/Subscription;)Z
  382. move-result v0
  383. if-eqz v0, :cond_0
  384. .line 46
  385. iput-object p1, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  386. .line 48
  387. :try_start_0
  388. iget-object v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->actual:Lorg/reactivestreams/Subscriber;
  389. invoke-interface {v0, p0}, Lorg/reactivestreams/Subscriber;->onSubscribe(Lorg/reactivestreams/Subscription;)V
  390. :try_end_0
  391. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
  392. goto :goto_0
  393. :catch_0
  394. move-exception v0
  395. .line 50
  396. invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  397. const/4 v1, 0x1
  398. .line 51
  399. iput-boolean v1, p0, Lio/reactivex/subscribers/SafeSubscriber;->done:Z
  400. .line 54
  401. :try_start_1
  402. invoke-interface {p1}, Lorg/reactivestreams/Subscription;->cancel()V
  403. :try_end_1
  404. .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
  405. .line 60
  406. invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  407. goto :goto_0
  408. :catch_1
  409. move-exception p1
  410. .line 56
  411. invoke-static {p1}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  412. .line 57
  413. new-instance v2, Lio/reactivex/exceptions/CompositeException;
  414. const/4 v3, 0x2
  415. new-array v3, v3, [Ljava/lang/Throwable;
  416. const/4 v4, 0x0
  417. aput-object v0, v3, v4
  418. aput-object p1, v3, v1
  419. invoke-direct {v2, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  420. invoke-static {v2}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  421. :cond_0
  422. :goto_0
  423. return-void
  424. .end method
  425. .method public request(J)V
  426. .locals 3
  427. .line 211
  428. :try_start_0
  429. iget-object v0, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  430. invoke-interface {v0, p1, p2}, Lorg/reactivestreams/Subscription;->request(J)V
  431. :try_end_0
  432. .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
  433. goto :goto_0
  434. :catch_0
  435. move-exception p1
  436. .line 213
  437. invoke-static {p1}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  438. .line 215
  439. :try_start_1
  440. iget-object p2, p0, Lio/reactivex/subscribers/SafeSubscriber;->s:Lorg/reactivestreams/Subscription;
  441. invoke-interface {p2}, Lorg/reactivestreams/Subscription;->cancel()V
  442. :try_end_1
  443. .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
  444. .line 221
  445. invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  446. :goto_0
  447. return-void
  448. :catch_1
  449. move-exception p2
  450. .line 217
  451. invoke-static {p2}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
  452. .line 218
  453. new-instance v0, Lio/reactivex/exceptions/CompositeException;
  454. const/4 v1, 0x2
  455. new-array v1, v1, [Ljava/lang/Throwable;
  456. const/4 v2, 0x0
  457. aput-object p1, v1, v2
  458. const/4 p1, 0x1
  459. aput-object p2, v1, p1
  460. invoke-direct {v0, v1}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
  461. invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  462. return-void
  463. .end method