A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
1.0 KiB

using System;
#nullable enable
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; }
}
}