     
     public func mapObject<T: Mappable>() throws -> T {
         guard let jsonDictionary = try mapJSON() as? NSDictionary, let object = T.from(jsonDictionary) else {
-            throw Error.jsonMapping(self)
+            throw MoyaError.jsonMapping(self)
         }
         
         return object

    
    public func mapArray<T: Mappable>() throws -> [T] {
        guard let jsonArray = try mapJSON() as? NSArray, let object = T.from(jsonArray) else {
            throw Error.jsonMapping(self)
        }
        
        return object

        guard let jsonDictionary = try mapJSON() as? NSDictionary,
            let objectDictionary = jsonDictionary.value(forKeyPath:keyPath) as? NSDictionary,
            let object = T.from(objectDictionary) else {
                throw MoyaError.jsonMapping(self)
        }
        
        return object
