Exception: Yoga::InvalidShiftError Private

Inherits:
ParseError show all
Defined in:
lib/yoga/errors.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A shift was requested, but was invalid.

Instance Attribute Summary

Attributes inherited from LocationError

#location

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Yoga::Error

Instance Method Details

#generate_message::String (private)

Generates a message for the exception.

Returns:

  • (::String)


72
73
74
# File 'lib/yoga/errors.rb', line 72

private def generate_message
  "Parser shifted, but no tokens remain at #{@location}"
end