Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ Pavel Smagin <smaginp@gmail.com> @psmagin
Romain Sertelon <romain@sertelon.fr> @rsertelon
Sam Lukes <sam_lukes@icloud.com> @slukes
Sipos Tamas <sipos.tamas@fhb.hu> @onlyonce
Stephan Schroevers <stephan.schroevers@teampicnic.com> @Stephan202
2 changes: 2 additions & 0 deletions src/main/java/com/google/maps/errors/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public static ApiException from(String status, String errorMessage) {
return new MaxElementsExceededException(errorMessage);
} else if ("MAX_ROUTE_LENGTH_EXCEEDED".equals(status)) {
return new MaxRouteLengthExceededException(errorMessage);
} else if ("MAX_WAYPOINTS_EXCEEDED".equals(status)) {
return new MaxWaypointsExceededException(errorMessage);
} else if ("NOT_FOUND".equals(status)) {
return new NotFoundException(errorMessage);
} else if ("OVER_QUERY_LIMIT".equals(status)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright 2019 Google Inc. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
* ANY KIND, either express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

package com.google.maps.errors;

/**
* Indicates that too many waypoints were provided in the request.
*
* @see <a href="https://developers.google.com/maps/documentation/directions/intro#StatusCodes">
* Status Codes</a>
*/
public class MaxWaypointsExceededException extends ApiException {
private static final long serialVersionUID = 1L;

public MaxWaypointsExceededException(String errorMessage) {
super(errorMessage);
}
}