类 ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ai.nextbillion.maps.errors.ApiException
- 所有已实现的接口:
java.io.Serializable
- 直接已知子类:
AccessNotConfiguredException,InvalidRequestException,MaxElementsExceededException,MaxRouteLengthExceededException,MaxWaypointsExceededException,NotFoundException,OverDailyLimitException,OverQueryLimitException,RequestDeniedException,UnknownErrorException,ZeroResultsException
public class ApiException
extends java.lang.Exception
ApiException and its descendants represent an error returned by the remote API. API errors are
determined by the
status field returned in any of the Geo API responses.- 另请参阅:
- 序列化表格
-
构造器概要
构造器 限定符 构造器 说明 protectedApiException(java.lang.String message) -
方法概要
修饰符和类型 方法 说明 static ApiExceptionfrom(java.lang.String status, java.lang.String errorMessage)Construct the appropriate ApiException from the response.
-
构造器详细资料
-
ApiException
protected ApiException(java.lang.String message)
-
-
方法详细资料
-
from
Construct the appropriate ApiException from the response. If the response was successful, this method will return null.- 参数:
status- The status field returned from the APIerrorMessage- The error message returned from the API- 返回:
- The appropriate ApiException based on the status or null if no error occurred.
-