Feature Request #3477
Remote Exception codes
|Assignee:||Woody Gilk||% Done:|
I have noticed that error codes are not set when an exception occurs. There are many cases where error codes are needed from a certain exception. For example, when using the remote class I would like to know what error code CURL gives me. If curl failed due to a bad request or a timeout. If its a bad request I will stop executing, if its a timeout I will retry my request etc.
My suggestion is to either add an error code to the exception thus extracting it via getCode() or change the format of the message text to an array that includes error codes, error types and messages.
'error_code' => curl_errno($remote),
'error' => array(
'message' => curl_error($remote),
'type' => 'curl_exception'
#4 Updated by Woody Gilk almost 4 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed