Nutrient Web SDK
    Preparing search index...

    Function SaveError

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

      Parameters

      • messageOrError: string | Error
      • reason: { error: any; modificationType: "CREATED" | "UPDATED" | "DELETED"; object: any }[]
        • error: any

          Reason of the save failure.

        • modificationType: "CREATED" | "UPDATED" | "DELETED"

          modificationType Type of modification that was being saved.

        • object: any

          Object that was being saved.

      Returns Error

      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
    Index

    Properties

    Properties

    prototype: any