Added constant-assignment exception.

This commit is contained in:
arookas 2015-12-27 21:56:52 -05:00
parent eb636f2674
commit 664d1e227e

View file

@ -159,6 +159,16 @@ namespace arookas
}
}
class sunAssignConstantException : sunNodeException<sunIdentifier>
{
public override string Message { get { return String.Format("Constant '{0}' is read-only.", Node.Value); } }
public sunAssignConstantException(sunIdentifier node)
: base(node)
{
}
}
class sunRedeclaredParameterException : sunNodeException<sunIdentifier>
{
public override string Message { get { return String.Format("Redeclared parameter '{0}'.", Node.Value); } }