mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-01-16 22:04:29 -05:00
22 lines
521 B
C#
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)))
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|