Skip to content
Rich-Harris edited this page Oct 15, 2014 · 5 revisions

This page exists to document the various errors that gobble emits if it encounters problems. When gobble creates an error, it inherits from GobbleError (defined here) - these errors have a code property which is one of those listed below, and a name property which is 'GobbleError'.

These error codes can be used by external modules, such as gobble-cli, but are subject to change.

page is under construction...

code description additional properties
TRANSFORMATION_FAILED An error occurred while executing a transformation
  • id - the ID of the node
  • original - the original error
  • filename - the file that caused the error, if known
  • line - the line containing the error, if known
  • column - the column where the error begins, if known
PLUGIN_NOT_FOUND A plugin referenced by a string (e.g. node.transform('foo')) could not be loaded
  • plugin - the name of the plugin (without gobble- prefix)
Clone this wiki locally