21 lines
547 B
C#
21 lines
547 B
C#
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;
|
|
}
|
|
}
|