fuel / auth

Fuel PHP Framework - Fuel v1.x Authentication package
http://fuelphp.com/docs/packages/auth/intro.html
76 stars 57 forks source link

Throw separate Exceptions in Auth_Login_SimpleAuth #38

Closed stalmok closed 12 years ago

stalmok commented 12 years ago

Use case: http://fuelphp.com/forums/topics/view/8962

WanWizard commented 12 years ago

Checked the code: there are 10 different exceptions being thrown, I don't think 10 different exceptions would be the solution. I'll number them instead, so you can use $e->getCode() to check what the error is.

stalmok commented 12 years ago

I agree, in my case this will allow to get translation string by code dumber and I don't need to check all exceptions one by one. Thanks.