public ConstraintViolation(ParseTreeNode violatingNode, string message) { if (violatingNode == null) { throw new ArgumentNullException("violatingNode"); } this.violatingNode = violatingNode; this.message = message ?? string.Empty; }
/// <summary> /// Initializes a new instance of the CompileException class. /// </summary> public CompileException(ParseTreeNode node, string message) : this(message) { this.node = node; }