tags:

views:

28

answers:

0

What I'm doing is grabbing JSON off a website to deserialise it with a DataContract class. So what if the response I get doesn't match the class? I would be getting a SerializationException, but I'm thinking it would be better as an InnerException to a different exception, as the response is therefore incomplete or not JSON at all.

Right now I'm thinking WebException, but I have no ideas for a WebExceptionStatus that would be correct. Or perhaps it would be better to just create a completely new exception type?