Adding fix for  custom error handling
Adding fix for  custom error handling

shafreenAnfar/carbon-transports,thusithathilina/carbon-transports,wggihan/carbon-transports,bsenduran/carbon-transports,chanakaudaya/carbon-transports,wso2/carbon-transports