File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ import scala.util.control.{ControlThrowable, NonFatal}
125
125
* - `java.lang.LinkageError`
126
126
* - `java.lang.InterruptedException` and `java.lang.ThreadDeath`
127
127
* - [[scala.util.control.NonFatal fatal exceptions ]], excluding `scala.util.control.ControlThrowable`
128
+ * - all other exceptions, excluding `scala.util.control.ControlThrowable`
128
129
* - `scala.util.control.ControlThrowable`
129
- * - all other exceptions
130
130
*
131
131
* When more than two exceptions are thrown, the first two are combined and
132
132
* re-thrown as described above, and each successive exception thrown is combined
@@ -265,9 +265,9 @@ object Using {
265
265
case _ : VirtualMachineError => 4
266
266
case _ : LinkageError => 3
267
267
case _ : InterruptedException | _ : ThreadDeath => 2
268
- case _ : ControlThrowable => 0
268
+ case _ : ControlThrowable => - 1 // below everything
269
269
case e if ! NonFatal (e) => 1 // in case this method gets out of sync with NonFatal
270
- case _ => - 1
270
+ case _ => 0
271
271
}
272
272
@ inline def suppress (t : Throwable , suppressed : Throwable ): Throwable = { t.addSuppressed(suppressed); t }
273
273
You can’t perform that action at this time.
0 commit comments