X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FPathController.php;h=f0ef477e0969fdd32a6911aced09276a453ed689;hp=7d7ae6af8cd2bb843fa707195671bd627a876f3b;hb=efd74d3cddbac3cb5d317a5e14ba9d70281531c4;hpb=d2d165910aacef01961120326452e616f53991f2 diff --git a/application/controllers/PathController.php b/application/controllers/PathController.php index 7d7ae6a..f0ef477 100644 --- a/application/controllers/PathController.php +++ b/application/controllers/PathController.php @@ -78,7 +78,7 @@ class PathController extends Zend_Controller_Action } if ($geom::name != "LineString") { - throw new Syj_Exception_Request(); + throw new Syj_Exception_InvalidGeomUpload(); } $path->geom = $geom; @@ -96,7 +96,7 @@ class PathController extends Zend_Controller_Action if ($e->getCode() == 23505) { // 23505: Unique violation throw new Syj_Exception_Request(); $message = $e->getMessage(); if (strpos($message, 'paths_geom_key') !== false) { - throw new Syj_Exception_Request("uniquepath"); + throw new Syj_Exception_InvalidGeomUpload("uniquepath"); } else { throw $e; }