@@ -34,6 +34,8 @@ package services
3434 public class LoadConfigurationService extends Actor implements ILoadConfigurationService
3535 {
3636 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." ;
3739 private static const PARSE_CONFIGURATION_ERROR : String = "Loading the Feathers SDK configuration data failed. Cannot parse configuration file." ;
3840
3941 private static const LOAD_PROGRESS_LABEL : String = "Loading configuration data..." ;
@@ -89,7 +91,7 @@ package services
8991 }
9092 catch (error : Error )
9193 {
92- this . sdkManagerModel. log ("Error while parsing configuration file. " + error );
94+ this . sdkManagerModel. log (PARSE_CONFIGURATION_ERROR + " " + error );
9395 this . cleanup();
9496 this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false , PARSE_CONFIGURATION_ERROR );
9597 return ;
@@ -107,16 +109,16 @@ package services
107109
108110 private function loader_ioErrorHandler (event :IOErrorEvent ):void
109111 {
110- this . sdkManagerModel. log ("Error while loading configuration file. " + event);
112+ this . sdkManagerModel. log (FILE_NOT_FOUND_ERROR + " " + event);
111113 this . cleanup();
112- this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false );
114+ this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false , FILE_NOT_FOUND_ERROR );
113115 }
114116
115117 private function loader_securityErrorHandler (event :SecurityErrorEvent ):void
116118 {
117- this . sdkManagerModel. log ("Error while loading configuration file. " + event);
119+ this . sdkManagerModel. log (SECURITY_ERROR + " " + event);
118120 this . cleanup();
119- this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false );
121+ this . dispatchWith(LoadConfigurationServiceEventType. ERROR , false , SECURITY_ERROR );
120122 }
121123 }
122124}
0 commit comments