summaryrefslogtreecommitdiff
path: root/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/exceptions/SpriteBitmapChangedException.java
blob: 15c6d7eec62c16e8f8b6ddd0f9ddfd61eb9620e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.mapbox.mapboxsdk.exceptions;

import android.graphics.Bitmap;

import com.mapbox.mapboxsdk.annotations.Marker;
import com.mapbox.mapboxsdk.annotations.Sprite;
import com.mapbox.mapboxsdk.views.MapView;

/**
 * A {@code SpriteBitmapChangedException} is thrown by {@link MapView} when a {@link Marker} is added
 * that has a {@link Sprite} with a {@link Bitmap} that has been modified.
 * <p/>
 * You cannot modify a {@code Sprite} after it has been added to the map in a {@code Marker}
 *
 * @see MapView
 * @see Sprite
 * @see Marker
 */
public class SpriteBitmapChangedException extends RuntimeException {

    public SpriteBitmapChangedException() {
        super("The added Marker has a Sprite with a Bitmap that has been modified. You cannot modufy" +
                "a Sprite after it has been added in a Marker.");
    }

}