Json5Parser.fail

bool fail(const(char)[] msg, const Json5ErrorCode code = Json5ErrorCode.UNEXPECTED_TOKEN) @safe

Record an error at the current position and return false.