- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
How can I catch exceptions?
Created by admin on 2008-07-28.
Updated: 2008-07-28, 16:30
Use try
and catch
, where the catch
clause is a pattern match.
try { // ... } catch { case ioe: IOException => ... // more specific cases first ! case e: Exception => ... }