File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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}
125125 * - `java.lang.LinkageError` 
126126 * - `java.lang.InterruptedException` and `java.lang.ThreadDeath` 
127127 * - [[scala.util.control.NonFatal fatal exceptions ]], excluding `scala.util.control.ControlThrowable` 
128+  * - all other exceptions, excluding `scala.util.control.ControlThrowable` 
128129 * - `scala.util.control.ControlThrowable` 
129-  * - all other exceptions 
130130 * 
131131 * When more than two exceptions are thrown, the first two are combined and 
132132 * re-thrown as described above, and each successive exception thrown is combined 
@@ -265,9 +265,9 @@ object Using {
265265 case  _ : VirtualMachineError  =>  4 
266266 case  _ : LinkageError  =>  3 
267267 case  _ : InterruptedException  |  _ : ThreadDeath  =>  2 
268-  case  _ : ControlThrowable  =>  0 
268+  case  _ : ControlThrowable  =>  - 1   //  below everything 
269269 case  e if  ! NonFatal (e) =>  1  //  in case this method gets out of sync with NonFatal
270-  case  _ =>  - 1 
270+  case  _ =>  0 
271271 }
272272 @ inline def  suppress (t : Throwable , suppressed : Throwable ):  Throwable  =  { t.addSuppressed(suppressed); t }
273273
                                 You can’t perform that action at this time. 
               
                  
0 commit comments