summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/unwrapped/get_webhooks.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/unwrapped/get_webhooks.php b/examples/unwrapped/get_webhooks.php
index e149b21..90f7a9c 100644
--- a/examples/unwrapped/get_webhooks.php
+++ b/examples/unwrapped/get_webhooks.php
@@ -22,5 +22,7 @@ try {
echo 'Congrats! You got a list of all your webhooks from SparkPost!';
} catch (\Exception $exception) {
- echo $exception->getMessage();
+ echo $exception->getAPIMessage()."\n";
+ echo $exception->getAPICode()."\n";
+ echo $exception->getAPIDescription()."\n";
}