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


import android.content.Context;
import android.os.Bundle;

import com.mapbox.mapboxsdk.MapboxAccountManager;
import com.mapbox.mapboxsdk.maps.MapView;

/**
 * A MapboxAccountManagerNotStartedException is thrown by {@link com.mapbox.mapboxsdk.maps.MapView}
 * when {@link MapboxAccountManager} is not started before {@link MapView#onCreate(Bundle)}.
 *
 * @see MapView#onCreate(Bundle)
 * @see MapboxAccountManager#start(Context, String)
 */
public class MapboxAccountManagerNotStartedException extends RuntimeException {

    public MapboxAccountManagerNotStartedException() {
        super("\nMapboxAccountManager was not started correctly. Use MapboxAccountManager#start(Context, String) to initialise. " +
                "\nMore information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens.");
    }
}