@@ -97,6 +97,8 @@ public void clearCache() {
9797 * Returns a list of catchable pokemon around the current location.
9898 *
9999 * @return a List of CatchablePokemon at your current location
100+ * @throws LoginFailedException if the login failed
101+ * @throws RemoteServerException When a buffer exception is thrown
100102 */
101103 public List <CatchablePokemon > getCatchablePokemon () throws LoginFailedException , RemoteServerException {
102104 Set <CatchablePokemon > catchablePokemons = new HashSet <>();
@@ -124,6 +126,8 @@ public List<CatchablePokemon> getCatchablePokemon() throws LoginFailedException,
124126 * Returns a list of nearby pokemon (non-catchable).
125127 *
126128 * @return a List of NearbyPokemon at your current location
129+ * @throws LoginFailedException if the login failed
130+ * @throws RemoteServerException When a buffer exception is thrown
127131 */
128132 public List <NearbyPokemon > getNearbyPokemon () throws LoginFailedException , RemoteServerException {
129133 List <NearbyPokemon > pokemons = new ArrayList <>();
@@ -140,6 +144,8 @@ public List<NearbyPokemon> getNearbyPokemon() throws LoginFailedException, Remot
140144 * Returns a list of spawn points.
141145 *
142146 * @return list of spawn points
147+ * @throws LoginFailedException if the login failed
148+ * @throws RemoteServerException When a buffer exception is thrown
143149 */
144150 public List <Point > getSpawnPoints () throws LoginFailedException , RemoteServerException {
145151 List <Point > points = new ArrayList <>();
@@ -156,6 +162,8 @@ public List<Point> getSpawnPoints() throws LoginFailedException, RemoteServerExc
156162 * Get a list of gyms near the current location.
157163 *
158164 * @return List of gyms
165+ * @throws LoginFailedException if the login failed
166+ * @throws RemoteServerException When a buffer exception is thrown
159167 */
160168 public List <Gym > getGyms () throws LoginFailedException , RemoteServerException {
161169 List <Gym > gyms = new ArrayList <>();
@@ -174,6 +182,8 @@ public List<Gym> getGyms() throws LoginFailedException, RemoteServerException {
174182 * Returns a list of decimated spawn points at current location.
175183 *
176184 * @return list of spawn points
185+ * @throws LoginFailedException if the login failed
186+ * @throws RemoteServerException When a buffer exception is thrown
177187 */
178188 public List <Point > getDecimatedSpawnPoints () throws LoginFailedException , RemoteServerException {
179189 List <Point > points = new ArrayList <>();
@@ -190,6 +200,8 @@ public List<Point> getDecimatedSpawnPoints() throws LoginFailedException, Remote
190200 * Returns MapObjects around your current location.
191201 *
192202 * @return MapObjects at your current location
203+ * @throws LoginFailedException if the login failed
204+ * @throws RemoteServerException When a buffer exception is thrown
193205 */
194206 public MapObjects getMapObjects () throws LoginFailedException , RemoteServerException {
195207 return getMapObjects (9 );
@@ -200,6 +212,9 @@ public MapObjects getMapObjects() throws LoginFailedException, RemoteServerExcep
200212 *
201213 * @param width width
202214 * @return MapObjects at your current location
215+ *
216+ * @throws LoginFailedException If login fails.
217+ * @throws RemoteServerException If request errors occurred.
203218 */
204219 public MapObjects getMapObjects (int width ) throws LoginFailedException , RemoteServerException {
205220 return getMapObjects (
@@ -218,6 +233,8 @@ public MapObjects getMapObjects(int width) throws LoginFailedException, RemoteSe
218233 * @param latitude latitude
219234 * @param longitude longitude
220235 * @return MapObjects in the given cells
236+ * @throws LoginFailedException if the login failed
237+ * @throws RemoteServerException When a buffer exception is thrown
221238 */
222239 @ Deprecated
223240 public MapObjects getMapObjects (double latitude , double longitude )
@@ -232,6 +249,8 @@ public MapObjects getMapObjects(double latitude, double longitude)
232249 * @param latitude latitude
233250 * @param longitude longitude
234251 * @return MapObjects in the given cells
252+ * @throws LoginFailedException if the login failed
253+ * @throws RemoteServerException When a buffer exception is thrown
235254 */
236255 @ Deprecated
237256 public MapObjects getMapObjects (List <Long > cellIds , double latitude , double longitude )
@@ -246,6 +265,8 @@ public MapObjects getMapObjects(List<Long> cellIds, double latitude, double long
246265 * @param longitude longitude
247266 * @param width width
248267 * @return MapObjects in the given cells
268+ * @throws LoginFailedException if the login failed
269+ * @throws RemoteServerException When a buffer exception is thrown
249270 */
250271 @ Deprecated
251272 public MapObjects getMapObjects (double latitude , double longitude , int width )
@@ -259,7 +280,10 @@ public MapObjects getMapObjects(double latitude, double longitude, int width)
259280 * @param cellIds cellIds
260281 * @param latitude latitude
261282 * @param longitude longitude
283+ * @param altitude altitude
262284 * @return MapObjects in the given cells
285+ * @throws LoginFailedException if the login failed
286+ * @throws RemoteServerException When a buffer exception is thrown
263287 */
264288 @ Deprecated
265289 public MapObjects getMapObjects (List <Long > cellIds , double latitude , double longitude , double altitude )
@@ -275,6 +299,8 @@ public MapObjects getMapObjects(List<Long> cellIds, double latitude, double long
275299 *
276300 * @param cellIds List of cellId
277301 * @return MapObjects in the given cells
302+ * @throws LoginFailedException if the login failed
303+ * @throws RemoteServerException When a buffer exception is thrown
278304 */
279305 public MapObjects getMapObjects (List <Long > cellIds ) throws LoginFailedException , RemoteServerException {
280306 GetMapObjectsMessage .Builder builder = GetMapObjectsMessage .newBuilder ();
0 commit comments