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

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

/**
 * <p>
 * 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.");
    }

}