diff options
author | Avi Goldman <avrahamymgoldman@gmail.com> | 2016-06-23 10:17:22 -0400 |
---|---|---|
committer | Avi Goldman <avrahamymgoldman@gmail.com> | 2016-06-23 10:17:22 -0400 |
commit | 4f0cb068e21fd35e02131e293c7c55984d2a3100 (patch) | |
tree | dcc325fefff0f9bbfbe9acfb39e80eb86884827b /examples/transmissions/create_transmission_with_cc_and_bcc.php | |
parent | f79318aeea95c0ce7fb8d5ef376a2b0b97f3c140 (diff) | |
download | php-sparkpost-4f0cb068e21fd35e02131e293c7c55984d2a3100.zip php-sparkpost-4f0cb068e21fd35e02131e293c7c55984d2a3100.tar.gz php-sparkpost-4f0cb068e21fd35e02131e293c7c55984d2a3100.tar.bz2 |
added slashes on errors in examples
Diffstat (limited to 'examples/transmissions/create_transmission_with_cc_and_bcc.php')
-rw-r--r-- | examples/transmissions/create_transmission_with_cc_and_bcc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/transmissions/create_transmission_with_cc_and_bcc.php b/examples/transmissions/create_transmission_with_cc_and_bcc.php index 4c3e12b..6c6e476 100644 --- a/examples/transmissions/create_transmission_with_cc_and_bcc.php +++ b/examples/transmissions/create_transmission_with_cc_and_bcc.php @@ -56,7 +56,7 @@ try { $response = $promise->wait(); echo $response->getStatusCode()."\n"; print_r($response->getBody()); -} catch (Exception $e) { +} catch (\Exception $e) { echo $e->getCode()."\n"; echo $e->getMessage()."\n"; } |