views:

44

answers:

0

I have quite a big project and it is all done using pagemethods. Code behind is basically just to serve and handle the data. Everything works perfect, except for one thing - I recently created a custom exception class that I want to use for more user friendly reports and even possible actions. For this purpose, I inherited the exception class and added some properties. The problem is that all the exceptions get serialized into some generic exception, and my properties get lost in this process. Is there any way to json serialize my exception class and catch it in the onfailure method?