 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;
 

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

            }
            catch(qe:QueryError)
            {
                faultCode = ResourceManager.getInstance().getString("olap", "queryError");
                fault = new Fault(faultCode, qe.message);
                faultEvent = FaultEvent.createEvent(fault, token);
                for each (responder in token.responders)
                {
                    responder.fault(faultEvent);  
                }
                result = null;
            }
            catch (e:Error)
            {
                faultCode = ResourceManager.getInstance().getString("olap", "error");
                fault = new Fault(faultCode, e.message);
                faultEvent = FaultEvent.createEvent(fault, token);
                for each (responder in token.responders)
                {
                    responder.fault(faultEvent);  
                }
                result = null;
            }
