Class: SaveError

PSPDFKit.SaveError

A save error indicates a problem with saving. It is a subclass of PSPDFKit.Error that behaves like a regular JavaScript error.

Constructor

new PSPDFKit.SaveError()

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:

Type Definitions

ErrorReason

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.