Class: Error

A NutrientViewer.Error indicates a problem with NutrientViewer. It is a subclass of and behaves like a regular JavaScript error.

Constructor

new NutrientViewer.Error()

NutrientViewer related error.

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

Extends

  • Error