// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using PostSharp.Laos; [Serializable] public class Error : OnMethodBoundaryAspect { public override void OnException(MethodExecutionEventArgs ctx) { Console.WriteLine("Exception in math calculation ---- " + ctx.Exception); } }