templates support
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Inspectron.Epson.Templates.Language;
|
||||
|
||||
namespace Inspectron.Epson.Templates.Interpreter;
|
||||
|
||||
public class InterpreterException : Exception
|
||||
{
|
||||
public SourcePosition Position { get; }
|
||||
|
||||
public InterpreterException(string message, SourcePosition position)
|
||||
: base($"{message} at {position}")
|
||||
{
|
||||
Position = position;
|
||||
}
|
||||
|
||||
public InterpreterException(string message, SourcePosition position, Exception innerException)
|
||||
: base($"{message} at {position}", innerException)
|
||||
{
|
||||
Position = position;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user