How to print all exceptions thrown by some Scala program? -


are scala exceptions stored in global exceptions table or similar kind of structure , if there way access other catch?i mean if need print exceptions thrown scala program best way so?

thanks

there no table exceptions stored far know. can add unhandled exception catcher given thread, same way in java:

  import java.lang.thread.uncaughtexceptionhandler   import java.security.invalidkeyexception    thread.setdefaultuncaughtexceptionhandler(new uncaughtexceptionhandler {     override def uncaughtexception(t: thread, e: throwable): unit = {       println(e)       println(e.getstacktrace.mkstring("\r\n"))     }   }) 

but exception should unhandled in thread work. , if 1 unhandled exception happened - no other exceptions can thrown - not sure mean all exceptions


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -