In Service Studio you can create your own exceptions, allowing you to have the benefits of a strongly typed language.

Creating a User Exception

To create a User Exception do the following:

After adding a Raise Error element to your action flow, a window is displayed for you to select the type of exception to be thrown. Create a new User Exception by clicking on the New User Exception button. Alternatively, if the user exception already exists simply select it in the window and click OK.

Right-click on the Exceptions folder, or, under the folder, on one of the following groups: All Exceptions or User Exception. Select Add User Exception option in the popup menu.

To set the name of the User Exception do the following:

Handling a User Exception

To handle a User Exception either on the action flow or screen flow, simply use the Error Handler tool in your action or screen flow. Learn more about Handling Exceptions.

Note that User Exceptions are more general than other user exceptions. As an example, if you create and raise a new InvalidCustomerData user exception, and you do not have a specific error handler for this exception, then this exception is handled by the error handler for the user exception.

Deleting a User Exception

To delete a User Exception, simply right-click on the exception and select the delete option from the menu. All error handlers that handled that exception will be signalled with an error, for you do decide how to proceed.

If you only delete the Raise error from the action or screen flow, then the exception definition continues to exist in your application.

See Also

User Exception Properties | Raise Error Properties | Handle Exceptions | Exception Flow