summaryrefslogtreecommitdiff
path: root/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/exceptions/TooManySpritesException.java
blob: 02a57ba2257bc67ca85b6474daabe664ad1e1031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.mapbox.mapboxsdk.exceptions;

import com.mapbox.mapboxsdk.annotations.Sprite;
import com.mapbox.mapboxsdk.annotations.SpriteFactory;

/**
 * A {@code TooManySpritesException} is thrown by {@link SpriteFactory} when it
 * cannot create a {@link Sprite} because there are already too many.
 * <p/>
 * You should try to reuse Sprite objects whenever possible.
 *
 * @see SpriteFactory
 */
public class TooManySpritesException extends RuntimeException {

    public TooManySpritesException() {
        super("Cannot create a Sprite because there are already too many. Try reusing Sprites.");
    }

}