Package com.mapbox.mapboxsdk.exceptions
Contains the Mapbox Maps Android Exception API classes.
Types
Name | Summary |
---|---|
CalledFromWorkerThreadException | open class CalledFromWorkerThreadException : RuntimeException |
ConversionException | open class ConversionException : RuntimeException A ConversionException is thrown when a conversion failed to execute. |
IconBitmapChangedException | open class IconBitmapChangedException : RuntimeException An IconBitmapChangedException is thrown by MapView when a Marker is added that has an Icon with a Bitmap that has been modified since the creation of the Icon. |
InvalidLatLngBoundsException | open class InvalidLatLngBoundsException : RuntimeException An InvalidLatLngBoundsException is thrown by LatLngBounds when there aren’t enough LatLng to create a bounds. |
InvalidMarkerPositionException | open class InvalidMarkerPositionException : RuntimeException A InvalidMarkerPositionException is thrown when a Marker object is created with an invalid LatLng position. |
MapboxConfigurationException | open class MapboxConfigurationException : RuntimeException A MapboxConfigurationException is thrown by MapboxMap when the SDK hasn’t been properly initialised. |
TooManyIconsException | open class TooManyIconsException : RuntimeException A TooManyIconsException is thrown by IconFactory when it cannot create a Icon because there are already too many icons created. |
CalledFromWorkerThreadException
open class CalledFromWorkerThreadException : RuntimeException
Constructors
Name | Summary |
---|---|
CalledFromWorkerThreadException | open fun CalledFromWorkerThreadException(message: String) |
Functions
Name | Summary |
---|---|
addSuppressed | fun addSuppressed(exception: Throwable) |
fillInStackTrace | open fun fillInStackTrace(): Throwable |
getCause | open fun getCause(): Throwable |
getLocalizedMessage | open fun getLocalizedMessage(): String |
getMessage | open fun getMessage(): String |
getStackTrace | open fun getStackTrace(): Array |
getSuppressed | fun getSuppressed(): Array |
initCause | open fun initCause(cause: Throwable): Throwable |
printStackTrace | open fun printStackTrace() |
setStackTrace | open fun setStackTrace(stackTrace: Array |
toString | open fun toString(): String |
ConversionException
open class ConversionException : RuntimeException
A ConversionException is thrown when a conversion failed to execute.
Constructors
Name | Summary |
---|---|
ConversionException | open fun ConversionException(detailMessage: String) |
Functions
Name | Summary |
---|---|
addSuppressed | fun addSuppressed(exception: Throwable) |
fillInStackTrace | open fun fillInStackTrace(): Throwable |
getCause | open fun getCause(): Throwable |
getLocalizedMessage | open fun getLocalizedMessage(): String |
getMessage | open fun getMessage(): String |
getStackTrace | open fun getStackTrace(): Array |
getSuppressed | fun getSuppressed(): Array |
initCause | open fun initCause(cause: Throwable): Throwable |
printStackTrace | open fun printStackTrace() |
setStackTrace | open fun setStackTrace(stackTrace: Array |
toString | open fun toString(): String |
IconBitmapChangedException
open class IconBitmapChangedException : RuntimeException
An IconBitmapChangedException is thrown by MapView when a Marker is added that has an Icon with a Bitmap that has been modified since the creation of the Icon.
You cannot modify a {@code Icon} after it has been added to the map in a {@code Marker}
See also
Name | Summary |
---|---|
com.mapbox.mapboxsdk.maps.MapView | |
com.mapbox.mapboxsdk.annotations.Icon | |
com.mapbox.mapboxsdk.annotations.Marker | |
Constructors
Name | Summary |
---|---|
IconBitmapChangedException | open fun IconBitmapChangedException() |
Functions
Name | Summary |
---|---|
addSuppressed | fun addSuppressed(exception: Throwable) |
fillInStackTrace | open fun fillInStackTrace(): Throwable |
getCause | open fun getCause(): Throwable |
getLocalizedMessage | open fun getLocalizedMessage(): String |
getMessage | open fun getMessage(): String |
getStackTrace | open fun getStackTrace(): Array |
getSuppressed | fun getSuppressed(): Array |
initCause | open fun initCause(cause: Throwable): Throwable |
printStackTrace | open fun printStackTrace() |
setStackTrace | open fun setStackTrace(stackTrace: Array |
toString | open fun toString(): String |
InvalidLatLngBoundsException
open class InvalidLatLngBoundsException : RuntimeException
An InvalidLatLngBoundsException is thrown by LatLngBounds when there aren’t enough LatLng to create a bounds.
Constructors
Name | Summary |
---|---|
InvalidLatLngBoundsException | open fun InvalidLatLngBoundsException(latLngsListSize: Int) |
Functions
Name | Summary |
---|---|
addSuppressed | fun addSuppressed(exception: Throwable) |
fillInStackTrace | open fun fillInStackTrace(): Throwable |
getCause | open fun getCause(): Throwable |
getLocalizedMessage | open fun getLocalizedMessage(): String |
getMessage | open fun getMessage(): String |
getStackTrace | open fun getStackTrace(): Array |
getSuppressed | fun getSuppressed(): Array |
initCause | open fun initCause(cause: Throwable): Throwable |
printStackTrace | open fun printStackTrace() |
setStackTrace | open fun setStackTrace(stackTrace: Array |
toString | open fun toString(): String |
InvalidMarkerPositionException
open class InvalidMarkerPositionException : RuntimeException
A InvalidMarkerPositionException is thrown when a Marker object is created with an invalid LatLng position.
Constructors
Name | Summary |
---|---|
InvalidMarkerPositionException | open fun InvalidMarkerPositionException()Creates a invalid marker position exception thrown when a Marker object is created with an invalid LatLng position. |
Functions
Name | Summary |
---|---|
addSuppressed | fun addSuppressed(exception: Throwable) |
fillInStackTrace | open fun fillInStackTrace(): Throwable |
getCause | open fun getCause(): Throwable |
getLocalizedMessage | open fun getLocalizedMessage(): String |
getMessage | open fun getMessage(): String |
getStackTrace | open fun getStackTrace(): Array |
getSuppressed | fun getSuppressed(): Array |
initCause | open fun initCause(cause: Throwable): Throwable |
printStackTrace | open fun printStackTrace() |
setStackTrace | open fun setStackTrace(stackTrace: Array |
toString | open fun toString(): String |
MapboxConfigurationException
open class MapboxConfigurationException : RuntimeException
A MapboxConfigurationException is thrown by MapboxMap when the SDK hasn’t been properly initialised.
This occurs either when com.mapbox.mapboxsdk.Mapbox is not correctly initialised or the provided access token through getInstance isn’t valid.
See also
Name | Summary |
---|---|
com.mapbox.mapboxsdk.Mapbox | com.mapbox.mapboxsdk.Mapbox#getInstance(Context, String) |
Constructors
Name | Summary |
---|---|
MapboxConfigurationException | open fun MapboxConfigurationException()Creates a Mapbox configuration exception thrown by MapboxMap when the SDK hasn’t been properly initialised. |
MapboxConfigurationException | open fun MapboxConfigurationException(message: String)Creates a Mapbox configuration exception thrown by MapboxMap when the SDK hasn’t been properly initialised. |
Functions
Name | Summary |
---|---|
addSuppressed | fun addSuppressed(exception: Throwable) |
fillInStackTrace | open fun fillInStackTrace(): Throwable |
getCause | open fun getCause(): Throwable |
getLocalizedMessage | open fun getLocalizedMessage(): String |
getMessage | open fun getMessage(): String |
getStackTrace | open fun getStackTrace(): Array |
getSuppressed | fun getSuppressed(): Array |
initCause | open fun initCause(cause: Throwable): Throwable |
printStackTrace | open fun printStackTrace() |
setStackTrace | open fun setStackTrace(stackTrace: Array |
toString | open fun toString(): String |
TooManyIconsException
open class TooManyIconsException : RuntimeException
A TooManyIconsException is thrown by IconFactory when it cannot create a Icon because there are already too many icons created.
You should try to reuse Icon objects whenever possible.
See also
Name | Summary |
---|---|
com.mapbox.mapboxsdk.annotations.IconFactory | |
Constructors
Name | Summary |
---|---|
TooManyIconsException | open fun TooManyIconsException() |
Functions
Name | Summary |
---|---|
addSuppressed | fun addSuppressed(exception: Throwable) |
fillInStackTrace | open fun fillInStackTrace(): Throwable |
getCause | open fun getCause(): Throwable |
getLocalizedMessage | open fun getLocalizedMessage(): String |
getMessage | open fun getMessage(): String |
getStackTrace | open fun getStackTrace(): Array |
getSuppressed | fun getSuppressed(): Array |
initCause | open fun initCause(cause: Throwable): Throwable |
printStackTrace | open fun printStackTrace() |
setStackTrace | open fun setStackTrace(stackTrace: Array |
toString | open fun toString(): String |
Android SDK
SDK JS Reference
- Root
- attribution
- camera
- constants
- exceptions
- geometry
- http
- location
- location.engine
- location.modes
- location.permissions
- log
- maps
- maps.renderer
- maps.renderer.egl
- maps.renderer.glsurfaceview
- maps.renderer.textureview
- maps.widgets
- module.http
- module.loader
- net
- offline
- snapshotter
- storage
- style.expressions
- style.layers
- style.light
- style.sources
- style.types
- text
- utils