public final class TrackingError
extends java.lang.Exception
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
TrackingError.Type  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getRecoverySuggestion()
Returns a helpful, practical suggestion for how to address the error. 
 | 
TrackingError.Type | 
getType()
Returns an enumerated value of the type of error which occurred. 
 | 
static TrackingError | 
invalidTrackerName()
Create an instance of TrackingError in the case of an invalid tracker name. 
 | 
static TrackingError | 
missingLocationPermissions()
Create an instance of TrackingError in the case where the user hasn't previously obtained location permissions. 
 | 
static TrackingError | 
serviceError(java.lang.Throwable error)
Create an instance of TrackingError for the case an error came back from a service call. 
 | 
static TrackingError | 
trackerAlreadyStarted()
Create an instance of TrackingError in the case of the tracking already being started. 
 | 
static TrackingError | 
unauthorized()
Create an instance of TrackingError in the case of the user being unauthorized. 
 | 
public TrackingError.Type getType()
public java.lang.String getRecoverySuggestion()
public static TrackingError invalidTrackerName()
public static TrackingError trackerAlreadyStarted()
public static TrackingError missingLocationPermissions()
public static TrackingError unauthorized()
public static TrackingError serviceError(java.lang.Throwable error)
error - The error returned from the service call.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.