I'm trying to deserialize object derived from Exception class:
[Serializable]
public class Error : Exception, ISerializable
{
public string ErrorMessage { get; set; }
public Error() { }
}
Error error = JsonConvert.DeserializeObject< Error >("json error obj string");
It gives me error:
ISerializable type 'type' does not have a valid constructor.