Created the exception in error case and modified the system the compatible with it.