public void WarnLine(IcoErrorCode code, string message) { if (WarningsToIgnore.Contains(code)) { return; } Reporter.Output.WriteLine($"Warning{GenerateCode(code)}: {message}".Yellow()); NumberOfWarnings += 1; }
public void WarnLine(IcoErrorCode code, string message, string fileName, uint frameNumber) { if (WarningsToIgnore.Contains(code)) { return; } Reporter.Output.WriteLine($"{fileName}({frameNumber + 1}): Warning{GenerateCode(code)}: {message}".Yellow()); NumberOfWarnings += 1; }
public void ErrorLine(IcoErrorCode code, string message, string fileName, uint frameNumber) { if (WarningsToIgnore.Contains(code)) { return; } Reporter.Error.WriteLine($"{fileName}({frameNumber + 1}): Error{GenerateCode(code)}: {message}".Red()); NumberOfErrors += 1; }
public void ErrorLine(IcoErrorCode code, string message) { if (WarningsToIgnore.Contains(code)) { return; } Reporter.Error.WriteLine($"Error{GenerateCode(code)}: {message}".Red()); NumberOfErrors += 1; }
private string GenerateCode(IcoErrorCode code) { if (code == IcoErrorCode.NoError) { return(""); } else { codesUsed.Add(code); return($" ICO{(uint)code}"); } }
public InvalidPngFileException(IcoErrorCode errorCode, string message) : base(message) { ErrorCode = errorCode; }
public InvalidIcoFileException(IcoErrorCode errorCode, string message, ParseContext context) : this(message) { ErrorCode = errorCode; Context = context; }