package com.worklight.location.api.geo;

import com.worklight.location.internal.AbstractAcquisitionError;

public class WLGeoError extends AbstractAcquisitionError
{
  private final WLGeoErrorCodes errorCode;

  public WLGeoError(WLGeoErrorCodes paramWLGeoErrorCodes, String paramString)
  {
    super(paramString);
    this.errorCode = paramWLGeoErrorCodes;
  }

  public WLGeoErrorCodes getErrorCode()
  {
    return this.errorCode;
  }

  public String toString()
  {
    String str;
    if (this.errorCode == WLGeoErrorCodes.POSITION_UNAVAILABLE)
      str = "Position unavailable";
    while (true)
    {
      return str + ": " + this.message;
      if (this.errorCode == WLGeoErrorCodes.PERMISSION_DENIED)
        str = "Permission denied";
      else
        str = "Timeout";
    }
  }

  public static enum WLGeoErrorCodes
  {
    static
    {
      WLGeoErrorCodes[] arrayOfWLGeoErrorCodes = new WLGeoErrorCodes[3];
      arrayOfWLGeoErrorCodes[0] = PERMISSION_DENIED;
      arrayOfWLGeoErrorCodes[1] = POSITION_UNAVAILABLE;
      arrayOfWLGeoErrorCodes[2] = TIMEOUT;
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.worklight.location.api.geo.WLGeoError
 * JD-Core Version:    0.6.2
 */