top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do we handle Errors or Exceptions in Imperative Style(OOP style) in Scala?

+4 votes
318 views

What is the use try and catch in Scala? How do we handle Errors or Exceptions in Imperative Style(OOP style) in Scala?

posted Jul 25, 2016 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Try, catch and finally in scala is similar to Java with a minor difference in how the catch block is written.
The catch by default uses match in scala which results in cases.

Considering the order of inheritance multiple cases can be written.

answer Oct 6, 2016 by anonymous
...