$Error top-level property

  1. @JS('NutrientViewer.Error')
PSPDFKitErrorConstructor get $Error

Example:

  try {
    NutrientViewer.someFunctionThatFails()
  } catch (error) {
    error instanceof NutrientViewer.Error // => true
    error.message // Useful error message
  }

Implementation

@_i1.JS('NutrientViewer.Error')
external PSPDFKitErrorConstructor get $Error;