diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-20 21:13:58 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-20 21:13:58 -0800 |
commit | 210e02f0001489cdfa22da2fb57d6db08954aef3 (patch) | |
tree | 12275178326dd6dd4220216216489bc60cf4aec7 /modules | |
parent | 8bf73d4b4c5e609cd4bc9b6ea54d32faeefef19b (diff) |
Throw Rest exceptions, not regular exceptions.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/gallery_rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_rest.php b/modules/gallery/helpers/gallery_rest.php index 49096100..c5838ea5 100644 --- a/modules/gallery/helpers/gallery_rest.php +++ b/modules/gallery/helpers/gallery_rest.php @@ -52,7 +52,7 @@ class gallery_rest_Core { } if (!in_array($p->scope, array("direct", "all"))) { - throw new Exception("Bad Request", 400); + throw new Rest_Exception("Bad Request", 400); } if ($p->scope == "direct") { |