@@ -34,6 +34,8 @@ package services
34
34
public class LoadConfigurationService extends Actor implements ILoadConfigurationService
35
35
{
36
36
private static const LOAD_IN_PROGRESS_ERROR : String = "Loading the Feathers SDK configuration data failed. Loading is already in progress." ;
37
+ private static const FILE_NOT_FOUND_ERROR : String = "Loading the Feathers SDK configuration data failed. The file was not found on the server." ;
38
+ private static const SECURITY_ERROR : String = "Loading the Feathers SDK configuration data failed. Security sandbox error." ;
37
39
private static const PARSE_CONFIGURATION_ERROR : String = "Loading the Feathers SDK configuration data failed. Cannot parse configuration file." ;
38
40
39
41
private static const LOAD_PROGRESS_LABEL : String = "Loading configuration data..." ;
@@ -89,7 +91,7 @@ package services
89
91
}
90
92
catch (error : Error )
91
93
{
92
- this . sdkManagerModel. log ("Error while parsing configuration file. " + error );
94
+ this . sdkManagerModel. log (PARSE_CONFIGURATION_ERROR + " " + error );
93
95
this . cleanup();
94
96
this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false , PARSE_CONFIGURATION_ERROR );
95
97
return ;
@@ -107,16 +109,16 @@ package services
107
109
108
110
private function loader_ioErrorHandler (event :IOErrorEvent ):void
109
111
{
110
- this . sdkManagerModel. log ("Error while loading configuration file. " + event);
112
+ this . sdkManagerModel. log (FILE_NOT_FOUND_ERROR + " " + event);
111
113
this . cleanup();
112
- this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false );
114
+ this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false , FILE_NOT_FOUND_ERROR );
113
115
}
114
116
115
117
private function loader_securityErrorHandler (event :SecurityErrorEvent ):void
116
118
{
117
- this . sdkManagerModel. log ("Error while loading configuration file. " + event);
119
+ this . sdkManagerModel. log (SECURITY_ERROR + " " + event);
118
120
this . cleanup();
119
- this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false );
121
+ this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false , SECURITY_ERROR );
120
122
}
121
123
}
122
124
}
0 commit comments