官术网_书友最值得收藏!

Handling errors

So far, each time you got an error you had the opportunity to discover what kind of error it was and fix it. This is quite different form real scenarios, mainly for two reasons:

  • Real data has errors—a fact that cannot be avoided. If you fail to heed it, the transformations that run with test or sample data will probably crash when running with real data.
  • In most cases, your final work is run by an automated process and not by a user from Spoon. Therefore, if a transformation crashes, there will be nobody who notices and reacts to that situation.

In the next section, you will learn the simplest way to trap errors that may occur, avoiding unexpected crashes. This is the first step in the creation of transformations ready to be run in a production environment.

主站蜘蛛池模板: 武安市| 繁昌县| 丰顺县| 莱阳市| 神农架林区| 南澳县| 镇平县| 黄浦区| 中阳县| 九龙城区| 二连浩特市| 肃南| 宜宾县| 南平市| 尚义县| 茂名市| 额尔古纳市| 惠州市| 深州市| 华阴市| 延寿县| 长葛市| 曲阳县| 东阳市| 岳阳市| 泸水县| 襄垣县| 翁牛特旗| 乌兰察布市| 惠安县| 连云港市| 新田县| 宝鸡市| 盐津县| 安康市| 枣庄市| 濮阳县| 台州市| 包头市| 金昌市| 海盐县|