Enum Class ResponseCode

java.lang.Object
java.lang.Enum<ResponseCode>
com.targomo.client.api.response.ResponseCode
All Implemented Interfaces:
Serializable, Comparable<ResponseCode>, java.lang.constant.Constable

public enum ResponseCode extends Enum<ResponseCode>
Response codes (of responses with status code 200) from the Targomo API.
  • Enum Constant Details

    • OK

      public static final ResponseCode OK
    • COULD_NOT_CONNECT_POLYGON_TO_NETWORK

      public static final ResponseCode COULD_NOT_CONNECT_POLYGON_TO_NETWORK
    • COULD_NOT_CONNECT_POINT_TO_NETWORK

      public static final ResponseCode COULD_NOT_CONNECT_POINT_TO_NETWORK
    • NO_ROUTE_FOUND

      public static final ResponseCode NO_ROUTE_FOUND
    • RAVEL_TIME_EXCEEDED

      public static final ResponseCode RAVEL_TIME_EXCEEDED
    • UNKNOWN_EXCEPTION

      public static final ResponseCode UNKNOWN_EXCEPTION
    • SNAP_DISTANCE_MAX_EXCEEDED

      public static final ResponseCode SNAP_DISTANCE_MAX_EXCEEDED
  • Method Details

    • values

      public static ResponseCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResponseCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static ResponseCode fromString(String code)