class Ruby::Prism::ParseError

This represents an error that was encountered during parsing.

Attributes

The level of this error.

A Location object representing the location of this error in the source.

The message associated with this error.

The type of error. This is an internal symbol that is used for communicating with translation layers. It is not meant to be public API.

Public Class Methods

Create a new error object with the given message and location.

: (Symbol type, String message, Location location, Symbol level) -> void

# File lib/ruby/prism/parse_result.rb, line 840
def initialize(type, message, location, level)
  @type = type
  @message = message
  @location = location
  @level = level
end