How can I improve exception handling in Scala to reduce boilerplate code

welcome to shbcf.ru