So I have an error message that gets thrown in one file
$error_message = "Error received for " . $service . ": " . $_r['status'] . "\n" . "Message received: " . $_r['errors'];
throw new My_Exception($error_message);
and in another file I have
try { //blah blah } catch( My_Exception $e ) { var_export($e->getMessage()); }
The problem, however, is that $_r['errors'] is an ARRAY and it get $e->getMessage() just prints it as "Array". How can I modify this code to access the array?