I did it because Kohana_Exception gets rendered nicely, but Exception
doesn't necessarily.  I suspect it's the same reason all other exceptions
(Database, ORM, etc) all extend it, too.

Sent from my Swiss Army Phone
On Jun 3, 2013 11:57 PM, "Bharat Mediratta" <notifications@github.com>
wrote:

> In modules/gallery/classes/Gallery/Gallery/Exception.php:
>
> > @@ -17,4 +17,4 @@
> >   * along with this program; if not, write to the Free Software
> >   * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
> >   */
> > -class Gallery_Gallery_Exception extends Exception {}
> > +class Gallery_Gallery_Exception extends Kohana_Exception {}
>
> What's the motivating reason to do this? Is it just to get the factory()
> function? I worry that there's a semantic difference between the two
> exceptions that will get blurred in this case. I can't think of a case
> where it's a problem, though.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gallery/gallery3/pull/380/files#r4511214>
> .
>