- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala & afterThrowing advice
Wed, 2010-05-19, 16:54
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