# Handling errors

This scenario applies only to Talend Data Management Platform, Talend Big Data Platform, Talend Real Time Big Data Platform, Talend Data Services Platform, Talend MDM Platform and Talend Data Fabric.

This following scenario creates a six-component Job that shows how to handle error conditions using the tHMap component.

When tHMap executes a *Talend Data Mapper* map, an *ExecutionStatus* object is always returned. A pointer to this object is stored in the globalMap as *EXECUTION\_STATUS*. In addition, the *Overall Severity* numeric value (the constants are defined in *ExecutionStatus*) is also stored in the globalMap as *EXECUTION\_SEVERITY*. Finally, a parameter called *Execution Threshold* is defined that specifies the severity on which to throw an exception, thus triggering Job-related or component-related error processing. The default value for this parameter is *Fatal*.

To consult the Javadoc for the *ExecutionStatus* object, see the Camel Runtime documentation included in the *Talend Data Mapper* runtime kits and the *Talend Data Mapper User Guide*.

![](https://help.qlik.com/talend/en-US/components/7.2/Resources/images/use_case-thmap-scenario_error_handling.png)

### In this section

* [Adding and linking the components](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-adding-and-linking-components-standard-component-enterprise-in)
* [Defining the properties of the RunIf trigger](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-defining-properties-of-runif-trigger-standard-component-enterprise-select)
* [Defining the properties of tFixedFlowInput](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-defining-properties-of-tfixedflowinput-standard-component-enterprise-select)
* [Defining the properties of tJavaRow](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-defining-properties-of-tjavarow-standard-component-enterprise-select)
* [Defining the properties of tHMap](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-defining-properties-of-thmap-standard-component-enterprise-select)
* [Defining the properties of the first tJava component (OnSubjobError)](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-defining-properties-of-first-tjava-component-onsubjoberror-standard-component-enterprise-select)
* [Defining the properties of the second tJava component (OnSubjobOk)](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-defining-properties-of-second-tjava-component-onsubjobok-standard-component-enterprise-select)
* [Defining the properties of the third tJava component (RunIf)](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-defining-properties-of-third-tjava-component-runif-standard-component-enterprise-select)
* [Running the Job under different conditions](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap-tjava-tfixedflowinput-tjavarow-running-job-under-different-conditions-standard-component-enterprise-press)

**Related concepts**

[tHMap](https://help.qlik.com/talend/en-US/components/7.2/data-mapping/thmap "Executes transformations (called maps) between different sources and destinations by harnessing the capabilities of Talend Data Mapper , available in the Mapping perspective.")

**Related information**

[tFixedFlowInput](https://help.qlik.com/talend/r/en-US/7.2/components/tfixedflowinput/tfixedflowinput)

[tJava](https://help.qlik.com/talend/r/en-US/7.2/components/java-custom-code/tjava)

[tJavaRow](https://help.qlik.com/talend/r/en-US/7.2/components/java-custom-code/tjavarow)