예제 #1
0
        public ConstraintViolation(ParseTreeNode violatingNode, string message)
        {
            if (violatingNode == null)
            {
                throw new ArgumentNullException("violatingNode");
            }

            this.violatingNode = violatingNode;

            this.message = message ?? string.Empty;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the CompileException class.
 /// </summary>
 public CompileException(ParseTreeNode node, string message)
     : this(message)
 {
     this.node = node;
 }