--- title: "throw exception()" slug: "basic-exception" updated: 2026-08-12T13:17:13Z published: 2026-08-12T13:17:13Z canonical: "docs.lobstersoftware.com/basic-exception" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # throw exception() This function stops the current Mapping process with error message **a**. ## Parameters | Parameter | Description | | --- | --- | | a | Error message. | > [!NOTE] > **NOTE:** > > If you [use a profile to act as a web service](/docs/en/intro-external-systems-webservice-profile-without) and you also use this function, the Response of the web service will contain the content of parameter **a** and the stack trace. If you surround the error message with "§" characters, then only the error message will be returned, without the stack trace. A mapping test will still contain the exception message and the stack trace. > > **Example:** "§This is the error message§". The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated. The response determines how a profile sends processed data. In Phase 6, a response determines how and where the output data is sent or stored, e.g., via FTP, HTTP or e-mail. A profile can use several responses in parallel.