Updated exception handling api call