Hi,
We have some code that uses JSON.Net to deserialise an Ext.Direct request in an IHttpHandler.
Some of the parameters have their own custom deserialisers that perform validation for the class in question, for a BIC or IBAN say.
These can throw exceptions.
If we wrap an exception during one of these calls JSON.Net's GetErrorContext throws its own exception, due to _currentErrorContext.Error != error, with the message: "Current error context error is different to requested error."
I believe it should be possible to disable this check, and would rather not have to modify the source myself.
Out of interest, what's it for anyway?
Regards,
Westy
We have some code that uses JSON.Net to deserialise an Ext.Direct request in an IHttpHandler.
Some of the parameters have their own custom deserialisers that perform validation for the class in question, for a BIC or IBAN say.
These can throw exceptions.
If we wrap an exception during one of these calls JSON.Net's GetErrorContext throws its own exception, due to _currentErrorContext.Error != error, with the message: "Current error context error is different to requested error."
I believe it should be possible to disable this check, and would rather not have to modify the source myself.
Out of interest, what's it for anyway?
Regards,
Westy