diff options
Diffstat (limited to 'examples/transmission/get_all_transmissions.php')
-rw-r--r-- | examples/transmission/get_all_transmissions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/transmission/get_all_transmissions.php b/examples/transmission/get_all_transmissions.php index d4d92c0..a465056 100644 --- a/examples/transmission/get_all_transmissions.php +++ b/examples/transmission/get_all_transmissions.php @@ -17,6 +17,8 @@ try { $results = $sparky->transmission->all(); echo 'Congrats! You got a list of all your transmissions from SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getAPIMessage() . "\n"; + echo $exception->getAPICode() . "\n"; + echo $exception->getAPIDescription() . "\n"; } ?> |