Starting writing a few unit tests for the new DynamicNode codebase. Will of course leave the original DynamicNode stuff in its current place for backwards compatibility but will deprecate many of the classes which will call the new ones.
25 lines
444 B
C#
25 lines
444 B
C#
using System;
|
|
|
|
namespace Umbraco.Core.Dynamics
|
|
{
|
|
internal sealed class ParseException : Exception
|
|
{
|
|
readonly int _position;
|
|
|
|
public ParseException(string message, int position)
|
|
: base(message)
|
|
{
|
|
this._position = position;
|
|
}
|
|
|
|
public int Position
|
|
{
|
|
get { return _position; }
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format(Res.ParseExceptionFormat, Message, _position);
|
|
}
|
|
}
|
|
} |