public void AddTile(ITile tile) { if (cache.ContainsKey(tile.Name)) { throw TileException.DoubleDefinition(tile.Name); } cache.Add(tile.Name, tile); }
public static Exception ErrorInTile(TileException te, ParseContext context) { return MakePartial(new TileExceptionWithContext(te.Message)).Decorate(context).KeepHttpErrorCode(te); }
public static Exception ErrorInTile(TileException te, ParseContext context) { return(MakePartial(new TileExceptionWithContext(te.Message)).Decorate(context).KeepHttpErrorCode(te)); }