Refactor PortabilityWithoutPhoneNumberException
- The exception was captured to send to OTRS in the wrong piece of code:
It is raised instantiating the NewLineRequestMapping, and not the return
of PyMasMovil's
OrderItem.create()
method. - Introduce changes with the exception instantiation to automatically call OTRS when it is raised, without the need to specify it in a try except clause.
Commit 2: Also refactor NewNumberRegistrationWithPhoneNumberException following the same logic
Commit 3: Delegate OTRS error communication logic to an exception handler
Edited by Administrator