/// <summary> /// Initializes a new instance of the <see cref="SemanticErrorException"/> class. /// </summary> public SemanticErrorException(Mark start, Mark end, string message) : base(start, end, message) { }
/// <summary> /// Initializes a new instance of the <see cref="YamlException"/> class. /// </summary> public YamlException(Mark start, Mark end, string message, Exception innerException) : base(string.Format("({0}) - ({1}): {2}", start, end, message), innerException) { Start = start; End = end; }
/// <summary> /// Generate an empty scalar event. /// </summary> private static Event ProcessEmptyScalar(Mark position) { return new Events.Scalar(null, null, string.Empty, ScalarStyle.Plain, true, false, position, position); }
/// <summary> /// Initializes a new instance of the <see cref="YamlException"/> class. /// </summary> public YamlException(Mark start, Mark end, string message) : this(start, end, message, null) { }
/// <summary> /// Initializes a new instance of the <see cref="SyntaxErrorException"/> class. /// </summary> public SyntaxErrorException(Mark start, Mark end, string message) : base(start, end, message) { }