Exception: Yoga::UnexpectedCharacterError Private

Inherits:
LocationError 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.

An unexpected character was encountered while scanning.

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)

46
47
48
# File 'lib/yoga/errors.rb', line 46

private def generate_message
  "An unexpected character was encountered at #{@location}"
end