EnoError

The single generic error interface for all (user) errors that eno generates. Note that this is never thrown by itself, but only in one of it's subclassed variants (ParseError and ValidationError). However, you can still utilize this generic class in cases where you want to catch both parser and validation errors indiscriminately, like so:

try {
  // ...
} catch(err) {
  if(err instanceof EnoError) { // catches both ParseError and ValidationError
    // ...
  }
}

Subpages

cursor
selection
message
snippet
text