Eno::Error

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

begin
  # ...
rescue Eno::Error => e # catches both Eno::ParseError and Eno::ValidationError
  # ...
end

Subpages

#cursor
#selection
#message
#snippet
#text