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

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