Beispiel #1
0
 public InvalidEdgeTypeException(Type myCurrentEdgeType, params Type[] myExpectedEdgeTypes)
 {
     CurrentEdgeType   = myCurrentEdgeType;
     ExpectedEdgeTypes = myExpectedEdgeTypes;
     _msg = String.Format("The edge type \"{0}\" does not match the expected type: {1}", CurrentEdgeType,
                          ExpectedEdgeTypes.Aggregate <Type, StringBuilder>(new StringBuilder(), (result, elem) => { result.AppendFormat("{0},", elem); return(result); }));
 }
Beispiel #2
0
 public InvalidEdgeTypeException(params Type[] myExpectedEdgeTypes)
 {
     ExpectedEdgeTypes = myExpectedEdgeTypes;
     _msg = String.Format("Invalid edge type! Use one of the following: {0}", ExpectedEdgeTypes.Aggregate <Type, StringBuilder>(new StringBuilder(), (result, elem) => { result.AppendFormat("{0},", elem); return(result); }));
 }