summaryrefslogtreecommitdiffstats
path: root/application/exceptions/PublicApiException.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/exceptions/PublicApiException.php')
-rw-r--r--application/exceptions/PublicApiException.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/exceptions/PublicApiException.php b/application/exceptions/PublicApiException.php
index e7aa4360a..d22309478 100644
--- a/application/exceptions/PublicApiException.php
+++ b/application/exceptions/PublicApiException.php
@@ -7,4 +7,8 @@
namespace exceptions;
class PublicApiException extends ApiException {
+ public function __toString()
+ {
+ return $this->getMessage();
+ }
}