| 12345678910111213141516171819202122232425262728293031323334 |
- // Copyright (c) The Avalonia Project. All rights reserved.
- // Licensed under the MIT license. See licence.md file in the project root for full license information.
- using System;
- namespace Avalonia.Data.Core
- {
- /// <summary>
- /// Exception thrown when <see cref="ExpressionObserver"/> could not parse the provided
- /// expression string.
- /// </summary>
- #if !BUILDTASK
- public
- #endif
- class ExpressionParseException : Exception
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="ExpressionParseException"/> class.
- /// </summary>
- /// <param name="column">The column position of the error.</param>
- /// <param name="message">The exception message.</param>
- /// <param name="innerException">The exception that caused the parsing failure.</param>
- public ExpressionParseException(int column, string message, Exception innerException = null)
- : base(message, innerException)
- {
- Column = column;
- }
- /// <summary>
- /// Gets the column position at which the error occurred.
- /// </summary>
- public int Column { get; }
- }
- }
|