This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala & afterThrowing advice

No replies
Roland RECKEL
Joined: 2010-05-19,
User offline. Last seen 42 years 45 weeks ago.

Hi,

In Java I used the afterThrowing advice of AspectJ to convert any exception thrown on the server to a 'special serializable' exception type to be forwarded to the client.
Is there any way to do the same in pure Scala, ie catching any exception thrown by any method of a class?

The AspectJ compiler doesn't compile Scala classes, and load-time weaving is prohibited on our production server :-(

Thanks for your help
Roll

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland