/// <summary>
 /// Throw error with IPM
 /// </summary>
 /// <param name="pm"></param>
 /// <param name="level">Selected level.</param>
 public IncorrectNodeException(IPM pm, int level = 0)
     : this()
 {
     if(pm != null) {
         pm.fail(level, (new StackTrace()).GetFrame(1).GetMethod().Name);
     }
 }
Exemple #2
0
 /// <summary>
 /// Throw error with IPM
 /// </summary>
 /// <param name="pm"></param>
 /// <param name="level">Selected level.</param>
 public IncorrectNodeException(IPM pm, int level = 0)
     : this()
 {
     if (pm != null)
     {
         pm.fail(level, (new StackTrace()).GetFrame(1).GetMethod().Name);
     }
 }