 }
 
 /// Position error domain
-public let ErrorDomain = "PositionErrorDomain"
+public let PositionErrorDomain = "PositionErrorDomain"
 
 /// Possible error types
-public enum ErrorType: Int, CustomStringConvertible {
-    case timedOut = 0
+public enum PositionErrorType: Error, CustomStringConvertible {
+    case timedOut
     case restricted
     case cancelled
     

                request.completed = true
                if request.expired {
                    self.executeClosureSyncOnMainQueueIfNecessary {
                        request.completionHandler?(nil, NSError(domain: ErrorDomain, code: ErrorType.timedOut.rawValue, userInfo: nil))
                    }
                } else {
                    self.executeClosureSyncOnMainQueueIfNecessary {

            }
            
            self.executeClosureSyncOnMainQueueIfNecessary {
                handler(nil, error ?? PositionErrorType.cancelled)
            }
        }
    }
