类 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.
另请参阅:
序列化表格
  • 构造器概要

    构造器 
    限定符 构造器 说明
    protected ApiException​(java.lang.String message)  
  • 方法概要

    修饰符和类型 方法 说明
    static ApiException from​(java.lang.String status, java.lang.String errorMessage)
    Construct the appropriate ApiException from the response.

    从类继承的方法 java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • ApiException

      protected ApiException​(java.lang.String message)
  • 方法详细资料

    • from

      public static ApiException from​(java.lang.String status, java.lang.String errorMessage)
      Construct the appropriate ApiException from the response. If the response was successful, this method will return null.
      参数:
      status - The status field returned from the API
      errorMessage - The error message returned from the API
      返回:
      The appropriate ApiException based on the status or null if no error occurred.