@@ -108,7 +108,7 @@ public virtual void OnUpdate () { }
108108 // done during 'OnInitialize' cycle.
109109 public void Register ( params System . Type [ ] typesOf ) {
110110 if ( this . isInitialized == true )
111- throw new System . Exception ( "Unable to registered system outsize of OnInitialize cycle" ) ;
111+ throw new System . Exception ( "Cannot to registered System outsize of OnInitialize cycle" ) ;
112112
113113 for ( var _typeOfIndex = 0 ; _typeOfIndex < typesOf . Length ; _typeOfIndex ++ ) {
114114 var _instance = System . Activator . CreateInstance ( typesOf [ _typeOfIndex ] ) ;
@@ -183,15 +183,15 @@ public bool IsSystemEnabled<S> () {
183183 for ( var _systemIndex = 0 ; _systemIndex < this . systems . Count ; _systemIndex ++ )
184184 if ( this . systems [ _systemIndex ] . GetType ( ) == _typeOfS )
185185 return ( S ) this . systems [ _systemIndex ] ;
186- throw new System . Exception ( "Unable to get system , it was not registerd to the controller " ) ;
186+ throw new System . Exception ( $ "Unable to get System of type { _typeOfS } , it was not registerd to the Controller ") ;
187187 }
188188
189189 /// Gets a system from this controller.
190190 public System . Object GetSystem ( System . Type typeOf ) {
191191 for ( var _systemIndex = 0 ; _systemIndex < this . systems . Count ; _systemIndex ++ )
192192 if ( this . systems [ _systemIndex ] . GetType ( ) == typeOf )
193193 return this . systems [ _systemIndex ] ;
194- throw new System . Exception ( "Unable to get system , it was not registerd to the controller " ) ;
194+ throw new System . Exception ( $ "Unable to get System of type { typeOf } , it was not registerd to the Controller ") ;
195195 }
196196
197197 /// Check whether this controller has a system.
@@ -209,15 +209,15 @@ public System.Object GetSystem (System.Type typeOf) {
209209 for ( var _serviceIndex = 0 ; _serviceIndex < this . services . Count ; _serviceIndex ++ )
210210 if ( this . services [ _serviceIndex ] . GetType ( ) == _typeOfS )
211211 return ( S ) this . services [ _serviceIndex ] ;
212- throw new System . Exception ( "Unable to get service , it was not registerd to the controller " ) ;
212+ throw new System . Exception ( $ "Unable to get Service of type { _typeOfS } , it was not registerd to the Controller ") ;
213213 }
214214
215215 /// Gets a system from this controller.
216216 public System . Object GetService ( System . Type typeOf ) {
217217 for ( var _serviceIndex = 0 ; _serviceIndex < this . services . Count ; _serviceIndex ++ )
218218 if ( this . services [ _serviceIndex ] . GetType ( ) == typeOf )
219219 return this . services [ _serviceIndex ] ;
220- throw new System . Exception ( "Unable to get service , it was not registerd to the controller " ) ;
220+ throw new System . Exception ( $ "Unable to get Service of type { typeOf } , it was not registerd to the Controller ") ;
221221 }
222222
223223 /// Check whether this controller has a service.
@@ -234,7 +234,7 @@ public UnityEngine.Object GetAsset (string name) {
234234 for ( var _i = 0 ; _i < this . assets . Length ; _i ++ )
235235 if ( this . assets [ _i ] . name == name )
236236 return this . assets [ _i ] ;
237- throw new System . Exception ( $ "Unable to get asset '{ name } ', it was not found on the controller ") ;
237+ throw new System . Exception ( $ "Unable to get Asset '{ name } ', it was not found on the Controller ") ;
238238 }
239239
240240 /// Gets an asset from this controller.
0 commit comments