@@ -200,7 +200,9 @@ exports.invalidClassName = function invalidClassName(
200
200
* @description Missing a property
201
201
*/
202
202
exports . missingProperty = function missingProperty ( propertyName ) {
203
- getLogger ( ) . warn ( "missing property '" + propertyName + "'" ) ;
203
+ getLogger ( ) . warn (
204
+ "missing property '" + propertyName + "' for a schema or a model"
205
+ ) ;
204
206
} ;
205
207
206
208
/**
@@ -236,11 +238,7 @@ exports.invalidTypeImp = function invalidTypeImp(property, className) {
236
238
*/
237
239
exports . missingPropertyImp = function missingPropertyImp ( property , className ) {
238
240
getLogger ( ) . warn (
239
- "missing property '" +
240
- property +
241
- "' for the definition of '" +
242
- className +
243
- "'"
241
+ "missing property '" + property + "' in the model '" + className + "'"
244
242
) ;
245
243
} ;
246
244
@@ -614,7 +612,7 @@ exports.behaviorNotUnique = function behaviorNotUnique(id, stateName) {
614
612
*/
615
613
exports . invalidStateOn = function invalidStateOn ( id , stateName ) {
616
614
getLogger ( ) . warn (
617
- "try to add a behavior with an unkwown state '" +
615
+ "try to add a behavior to an unkwown state '" +
618
616
stateName +
619
617
"' on class '" +
620
618
id +
@@ -715,7 +713,7 @@ exports.invalidChannelEvent = function invalidChannelEvent(
715
713
* @param {String } id id of the component
716
714
* @param {String } className class name of the component
717
715
* @param {String } methodName name of the component
718
- * @description invalid parameter number for an action add with on method
716
+ * @description invalid parameter number for a behavior add with 'on' method
719
717
*/
720
718
exports . invalidParamNumberMethodOn = function invalidParamNumberMethodOn (
721
719
id ,
@@ -728,7 +726,7 @@ exports.invalidParamNumberMethodOn = function invalidParamNumberMethodOn(
728
726
classInfo = " (class '" + className + "')" ;
729
727
}
730
728
getLogger ( ) . warn (
731
- "invalid number of parameters when adding an action on method '" +
729
+ "invalid number of parameters when adding a behavior on method '" +
732
730
methodName +
733
731
"' on component '" +
734
732
id +
@@ -781,7 +779,11 @@ exports.invalidUseOfComponent = function invalidUseOfComponent(id) {
781
779
* @description Try to add an invalid schema
782
780
*/
783
781
exports . invalidSchema = function invalidSchema ( name ) {
784
- getLogger ( ) . warn ( "the schema '" + name + "' is not valid" ) ;
782
+ getLogger ( ) . warn (
783
+ "the schema '" +
784
+ name +
785
+ "' is not valid, it has been removed from the metamodel"
786
+ ) ;
785
787
} ;
786
788
787
789
/**
@@ -790,7 +792,11 @@ exports.invalidSchema = function invalidSchema(name) {
790
792
* @description Try to add an invalid model
791
793
*/
792
794
exports . invalidModel = function invalidModel ( name ) {
793
- getLogger ( ) . warn ( "the model '" + name + "' is not valid" ) ;
795
+ getLogger ( ) . warn (
796
+ "the model '" +
797
+ name +
798
+ "' is not valid, it has been removed from the metamodel"
799
+ ) ;
794
800
} ;
795
801
796
802
/**
@@ -1031,6 +1037,25 @@ exports.actionInvokeError = function actionInvokeError(
1031
1037
}
1032
1038
} ;
1033
1039
1040
+ /**
1041
+ * @method invalidSchemaPropertyName
1042
+ * @param {String } name name of the schema
1043
+ * @param {String } propName name of the property
1044
+ * @description Invalid name for the property of a schema
1045
+ */
1046
+ exports . invalidSchemaPropertyName = function invalidSchemaPropertyName (
1047
+ name ,
1048
+ propName
1049
+ ) {
1050
+ getLogger ( ) . warn (
1051
+ "invalid name '" +
1052
+ propName +
1053
+ "' for schema '" +
1054
+ name +
1055
+ "': a name do not begin with '_'"
1056
+ ) ;
1057
+ } ;
1058
+
1034
1059
/**
1035
1060
* @method invalidSchemaProperty
1036
1061
* @param {String } name name of the schema
0 commit comments