/// <summary>
        /// Creates a new instance of DuplicatedTypeNameException.
        /// </summary>
        /// <param name="myTypeName">The name of the type, that is tried to be added multiple times.</param>
        public DuplicatedAttributeNameException(ATypePredefinition myTypePredefinition, String myTypeName)
        {
            Predefinition = myTypePredefinition;
            DuplicatedName = myTypeName;

            _msg = string.Format("The attribute {0} was declared multiple times on type {1}.", DuplicatedName, Predefinition.TypeName);
        }
Пример #2
0
 public UnknownPropertyTypeException(ATypePredefinition myTypePredefinition, string myPropertyName)
 {
     _msg = string.Format("The property {0} on type {1} has an unknown type.", myPropertyName, myTypePredefinition.TypeName);
 }
Пример #3
0
 /// <summary>
 /// Creates an instance of EmptyEdgeTypeException.
 /// </summary>
 /// <param name="myPredefinition">The predefinition that causes the exception.</param>
 /// <param name="myPropertyName">The name of the property.</param>
 public EmptyPropertyTypeException(ATypePredefinition myPredefinition, String myPropertyName)
 {
     _msg = string.Format("The property type {0} on type {1} is empty.", myPropertyName, myPredefinition.TypeName);
 }
Пример #4
0
 public UselessTypeException(ATypePredefinition predef)
 {
     this.VertexType = predef;
     _msg = string.Format("The type [{0}] is marked sealed and abstract. This makes this type useless.", predef.TypeName);
 }
Пример #5
0
 /// <summary>
 /// Creates an instance of EmptyEdgeTypeException.
 /// </summary>
 /// <param name="myPredefinition">The predefinition that causes the exception.</param>
 public EmptyEdgeTypeException(ATypePredefinition myPredefinition, String myOutgoingEdgeName)
 {
     Predefinition = myPredefinition;
     PropertyName = myOutgoingEdgeName;
     _msg = string.Format("The outgoing edge {0} on vertex type {1} is empty.", myOutgoingEdgeName, myPredefinition.TypeName);
 }