 import mx.collections.Sort;
 import mx.core.mx_internal;
 import mx.events.CubeEvent;
-import mx.messaging.messages.ErrorMessage;
 import mx.resources.ResourceManager;
 import mx.rpc.AsyncToken;
+import mx.rpc.Fault;
 import mx.rpc.IResponder;
+import mx.rpc.events.FaultEvent;
 
 use namespace mx_internal;
 

            var result:OLAPResult;
            var q:IOLAPQuery = _queriesPending[0];
            var deleteEntry:Boolean = true;
            
            try
            {

    	if (queryAxis.tuples.length == 0)
    	{
                var message:String = ResourceManager.getInstance().getString(
                   "olap", "zeroElementsOnAxis", [index]);
                throw new QueryError(message);
    	}
    }
