Is it ok to let exception bubble up to the top of the stack instead of catching it in every method?.. Should we do it in any case? ..Are there any subtle issues or side effects with this approach (e.g. loss of details of the exception, stack trace or inner exception details etc.) ?
Though my question is general, the scenario in my case at present is as follows:
I am moving existing WSE3 web service to the WCF and so y clients are WSE3 clients.
I have added a behavior so that the FaultException
will be communicated to the client side whenever it occurs in the WCF service. When there is an exception in the OperationContract
method, I get exception message at client side without any problem. But whenever it occurs in the methods other than the OperationContract
s, I get security related problem somehow. I am not able to identify the exact cause.
However, as a work around I thought to throw exceptions from OperationContract
only and let exceptions bubble up to the OperationContract
.