[]
Gets the descriptive message for this JSON error.
Use this property to retrieve the error text associated with a JSON import, deserialization, or serialization issue.
public string ErrorMessage { get; }
Public ReadOnly Property ErrorMessage As String
Workbook sourceWorkbook = new Workbook();
IValidation validation = sourceWorkbook.Worksheets[0].Range["A1:A3"].Validation;
validation.Add(ValidationType.Custom, ValidationAlertStyle.Stop, ValidationOperator.Between, "=A1>0", null);
string json = sourceWorkbook.ToJson().Replace("A1>0", "A1>");
Workbook importedWorkbook = new Workbook();
IList<JsonError> errors = importedWorkbook.FromJson(json);
string message = errors[0].ErrorMessage;