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

            throw new LensCompilerException(msg, entity);
        }
Exemplo n.º 6
0
 public void Error(LocationEntity entity, string message, params object[] args)
 {
     var msg = string.Format(message, args);
     throw new LensCompilerException(msg, entity);
 }