MCPcopy Create free account
hub / github.com/apache/fory / error

Method error

compiler/fory_compiler/frontend/fdl/parser.py:201–204  ·  view source on GitHub ↗

Create a parse error at the current position.

(self, message: str)

Source from the content-addressed store, hash-verified

199 raise ParseError(message, token.line, token.column)
200
201 def error(self, message: str) -> ParseError:
202 """Create a parse error at the current position."""
203 token = self.current()
204 return ParseError(message, token.line, token.column)
205
206 def parse(self) -> Schema:
207 """Parse the entire input and return a Schema."""

Callers 15

parseMethod · 0.95
parse_option_valueMethod · 0.95
parse_enumMethod · 0.95
parse_reservedMethod · 0.95
parse_messageMethod · 0.95
parse_union_fieldMethod · 0.95
parse_fieldMethod · 0.95
parse_field_optionsMethod · 0.95
parse_ref_optionsMethod · 0.95
parse_serviceMethod · 0.95
parse_rpc_methodMethod · 0.95
parse_type_optionsMethod · 0.95

Calls 2

currentMethod · 0.95
ParseErrorClass · 0.70

Tested by

no test coverage detected