Constructor
PSPDFKit related error related to saving.
Example
try {
await instance.save();
} catch (error) {
(error instanceof PSPDFKit.SaveError); // => true
error.message; // Useful error message
error.reason; // Array of errors for changes that could not be saved.
}
Extends
Members
Type Definitions
Members
Save error reason. Contains detailed error information for each change that could not be saved.
Type:
- Array.<PSPDFKit.SaveError~ErrorReason>
Type Definitions
Reason for the error that occurred when saving a certain modification.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
error |
Error | Reason of the save failure. |
object |
PSPDFKit.Change | Object that was being saved. |
modificationType |
PSPDFKit.ModificationType | Type of modification that was being saved. |