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

/**
 * <p>
 * A TooManyIconsException is thrown by IconFactory when it
 * cannot create a 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.");
  }

}