From 664d1e227e9d34dddcad8b7a69d75da0e38efc52 Mon Sep 17 00:00:00 2001 From: arookas Date: Sun, 27 Dec 2015 21:56:52 -0500 Subject: [PATCH] Added constant-assignment exception. --- ssc/exceptions.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ssc/exceptions.cs b/ssc/exceptions.cs index cd330b5..9dd9668 100644 --- a/ssc/exceptions.cs +++ b/ssc/exceptions.cs @@ -159,6 +159,16 @@ namespace arookas } } + class sunAssignConstantException : sunNodeException + { + public override string Message { get { return String.Format("Constant '{0}' is read-only.", Node.Value); } } + + public sunAssignConstantException(sunIdentifier node) + : base(node) + { + + } + } class sunRedeclaredParameterException : sunNodeException { public override string Message { get { return String.Format("Redeclared parameter '{0}'.", Node.Value); } }