A save error indicates a problem with saving. It is a subclass of NutrientViewer.Error that behaves like a regular JavaScript error.
Reason of the save failure.
modificationType Type of modification that was being saved.
Object that was being saved.
try { await instance.save();} catch (error) { (error instanceof NutrientViewer.SaveError); // => true error.message; // Useful error message error.reason; // Array of errors for changes that could not be saved.}@class Copy
try { await instance.save();} catch (error) { (error instanceof NutrientViewer.SaveError); // => true error.message; // Useful error message error.reason; // Array of errors for changes that could not be saved.}@class
A save error indicates a problem with saving. It is a subclass of NutrientViewer.Error that behaves like a regular JavaScript error.