Custom Error codes and Resource Error Messages

Topics: Exception Handling Application Block
Jan 10, 2008 at 9:38 PM
How to create error message with specific custom error codes using ExceptionShielding. There is GUID which gets added in the custom service fault, any idea on how to set our own error codes?

In any policy like Wrap Policy, instead of specifying the message in the config file, is there a way to get the message from a resource file and set it programatically?

Any pointers please?

Thank you for your time.
Jan 15, 2008 at 7:08 PM
Anybody please??
Jan 15, 2008 at 7:30 PM
Hi,

You can specify a type and resource name pair for your wrap handler in the configuration file, and the runtime will retrieve the localized message to populate the new exception. I'm not sure if this is what you mean by setting it programatically tough.

I don't know about custom error codes with exception shielding.

Fernando
Jan 18, 2008 at 12:38 AM
Thanks Fernando for your reply.