summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/exceptions/TooManyIconsException.java
blob: 8923d822f2c2f91ae5d8d27efadd5616b56503a9 (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.Icon;
import com.mapbox.mapboxsdk.annotations.IconFactory;

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

  public TooManyIconsException() {
    super("Cannot create an Icon because there are already too many. Try reusing Icon objects whenever possible.");
  }

}