Files
SWG-ScriptConverter/ScriptConverter/Parser/CompilerException.cs
Rohan Singh ad50a19057 Add code
2019-01-23 22:52:45 -05:00

22 lines
521 B
C#

using System;
using JetBrains.Annotations;
namespace ScriptConverter.Parser
{
public class CompilerException : Exception
{
protected CompilerException(string message)
: base(message)
{
}
[StringFormatMethod("format")]
internal CompilerException(ScriptToken token, string format, params object[] args)
: base(string.Format("{0}({1}): {2}", token.FileName ?? "null", token.RangeString, string.Format(format, args)))
{
}
}
}