Exam UiADPv1 All QuestionsBrowse all questions from this exam
Question 46

A project built using REFramework pulls phone numbers from a database of employees and creates queue items for each one. Following processing, these elements must be added to a financing application. The queue item holding a phone number becomes invalid if a digit is accidentally left out because of a human mistake. As a requirement, queue items that contain partial numbers should not be accepted.

What type of error should be thrown according to best practices?

    Correct Answer: A

    A Business Exception should be thrown in this scenario. This is because the incomplete phone number due to a human mistake does not meet the business requirements. Business Exceptions are typically used when an operation fails due to business logic issues, such as validation errors or data inconsistencies, which is exactly the case here since incomplete phone numbers should not be accepted.

Discussion
kingkayyOption: A

Business exception.

Brandon00777Option: A

B is correct. Business Exceptions contain applicable data however, that data does not meet business requirements and a customized exception is thrown.

6eebb19

Can someone confirm this? Thanks!

kingkayy

It is a business exception. It involves a human error in this case. It has nothing to do with system or application. System exception becomes an application exception in orchestrator. Both options have been made available in this case.