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 | |
parent | f79318aeea95c0ce7fb8d5ef376a2b0b97f3c140 (diff) | |
download | php-sparkpost-4f0cb068e21fd35e02131e293c7c55984d2a3100.zip php-sparkpost-4f0cb068e21fd35e02131e293c7c55984d2a3100.tar.gz php-sparkpost-4f0cb068e21fd35e02131e293c7c55984d2a3100.tar.bz2 |
added slashes on errors in examples
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/transmissions/create_transmission.php b/examples/transmissions/create_transmission.php index 4b45509..6f8ecbe 100644 --- a/examples/transmissions/create_transmission.php +++ b/examples/transmissions/create_transmission.php @@ -40,7 +40,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"; } 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"; } diff --git a/examples/transmissions/delete_transmission.php b/examples/transmissions/delete_transmission.php index 13c3150..dc893ed 100644 --- a/examples/transmissions/delete_transmission.php +++ b/examples/transmissions/delete_transmission.php @@ -21,7 +21,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"; } diff --git a/examples/transmissions/get_all_transmissions.php b/examples/transmissions/get_all_transmissions.php index a8bfca8..3cb1233 100644 --- a/examples/transmissions/get_all_transmissions.php +++ b/examples/transmissions/get_all_transmissions.php @@ -21,7 +21,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"; } |