sdk / com.mapbox.search / SearchRequestException

SearchRequestException

data class SearchRequestException : RuntimeException

Exception thrown when an HTTP response was not successful, i.e. if the code is not in [200..300).

Constructors

<init>

Exception thrown when an HTTP response was not successful, i.e. if the code is not in [200..300).

SearchRequestException(message: String, code: Int, cause: Exception? = null)

Properties

cause

the cause of this exception.

val cause: Exception?

code

the HTTP status code.

val code: Int

message

the HTTP status message.

val message: String