not going to errorlistener
Hello,
I'm making,with a friend, a mobile application at this moment for our thesis. We're using spring actionscript to get data from the server. We're doing this with commands.
Now our problem is that if we want to refresh our page. We also want to detect if there's stil internetconnection. If not we want to show a messagebox.
So we add an addErrorListener to our command:
Code:
protected function refreshImage_clickHandler(event:MouseEvent):void
{
var cmd:LoadStartupDataAfterLoginCommand=new LoadStartupDataAfterLoginCommand(ServiceLocator.getInstance().context);
cmd.addCompleteListener(loadDataAfterLogin_completeHandler);
cmd.addErrorListener(refresh_errorHandler);
cmd.execute();
}
When we debug and plug out ethernetcable and hit refresh he never goes into our refresh_errorHandler function. But in our console we can see that we have an ERROR:
Code:
ERROR - TMSNG.Service - Error during server communication on method 'getAvailableEventTypes': [RPC Fault faultString="error" faultCode="Channel.Call.Failed" faultDetail="NetConnection.Call.Failed: HTTP: Failed"]
Can anybody help us?
Kind regards,
Thibault Heylen