Exception Handling on search