You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i think is good to have a exception method witch can override base exception
as example when using some package for validation a field and that package is throw an exception is good to handle it on restify and throw a normal status code not 500
i suggest to have something like
field('phone')->exception(MyCustomException::class)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i think is good to have a exception method witch can override base exception
as example when using some package for validation a field and that package is throw an exception is good to handle it on restify and throw a normal status code not 500
i suggest to have something like
field('phone')->exception(MyCustomException::class)
Beta Was this translation helpful? Give feedback.
All reactions