public void Error(LocationEntity ent, string msg, params object[] args) { throw new LensCompilerException(string.Format(msg, args), ent); }
private void Error(string src, params object[] args) { var loc = new LocationEntity { StartLocation = getPosition() }; throw new LensCompilerException(string.Format(src, args), loc); }
/// <summary> /// Bind exception to a location. /// </summary> public LensCompilerException BindToLocation(LocationEntity entity) { return BindToLocation(entity.StartLocation, entity.EndLocation); }
public LensCompilerException(string msg, LocationEntity entity) : base(msg) { BindToLocation(entity); }
protected void error(LocationEntity entity, string message, params object[] args) { var msg = string.Format(message, args); throw new LensCompilerException(msg, entity); }
public void Error(LocationEntity entity, string message, params object[] args) { var msg = string.Format(message, args); throw new LensCompilerException(msg, entity); }