I see that the JError has been deprecated. I am a bit of an amateur and have a few questions. Going through exising code, there are a lot of custom error codes for Joomla. Now that JError is deprecated, what are we supposed to replace it with? PHP trigger_error? I can see a lot of people now making their own custom exception classes for their extensions. Isn't this a huge potential source of bugs? For instance if several running extensions/plugins use their own custom exception classes and error handlers.
> I see that the JError has been deprecated. I am a bit of an amateur > and have a few questions. Going through exising code, there are a lot > of custom error codes for Joomla. Now that JError is deprecated, what > are we supposed to replace it with? PHP trigger_error? I can see a lot > of people now making their own custom exception classes for their > extensions. Isn't this a huge potential source of bugs? For instance > if several running extensions/plugins use their own custom exception > classes and error handlers. --
> You received this message because you are subscribed to the Google > Groups "Joomla! General Development" group.
> To view this discussion on the web, visit > https://groups.google.com/d/msg/joomla-dev-general/-/YU2IR4avpIMJ.
> To post to this group, send an email to > joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to > joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
On Sunday, July 29, 2012 6:57:26 AM UTC+3, N6REJ wrote:
> from what I can see in the docs thats correct... JError is deprecated > use PHP exceptions instead > Bear > On 7/28/2012 6:33 PM, TDZWeb wrote:
> I see that the JError has been deprecated. I am a bit of an amateur and > have a few questions. Going through exising code, there are a lot of custom > error codes for Joomla. Now that JError is deprecated, what are we supposed > to replace it with? PHP trigger_error? I can see a lot of people now making > their own custom exception classes for their extensions. Isn't this a huge > potential source of bugs? For instance if several running > extensions/plugins use their own custom exception classes and error > handlers. --
> Can someone provide info about that? And interesting to know - why this > was done :)
> Best regards,
> Dmitry.
> On Sunday, July 29, 2012 6:57:26 AM UTC+3, N6REJ wrote:
>> from what I can see in the docs thats correct... JError is deprecated >> use PHP exceptions instead >> Bear
>> On 7/28/2012 6:33 PM, TDZWeb wrote:
>> I see that the JError has been deprecated. I am a bit of an amateur and >> have a few questions. Going through exising code, there are a lot of custom >> error codes for Joomla. Now that JError is deprecated, what are we supposed >> to replace it with? PHP trigger_error? I can see a lot of people now making >> their own custom exception classes for their extensions. Isn't this a huge >> potential source of bugs? For instance if several running >> extensions/plugins use their own custom exception classes and error >> handlers. --
> понедельник, 30 июля 2012 г., 14:15:12 UTC+3 пользователь b2z написал:
>> Hi!
>> Can someone provide info about that? And interesting to know - why this >> was done :)
>> Best regards,
>> Dmitry.
>> On Sunday, July 29, 2012 6:57:26 AM UTC+3, N6REJ wrote:
>>> from what I can see in the docs thats correct... JError is deprecated >>> use PHP exceptions instead >>> Bear
>>> On 7/28/2012 6:33 PM, TDZWeb wrote:
>>> I see that the JError has been deprecated. I am a bit of an amateur and >>> have a few questions. Going through exising code, there are a lot of custom >>> error codes for Joomla. Now that JError is deprecated, what are we supposed >>> to replace it with? PHP trigger_error? I can see a lot of people now making >>> their own custom exception classes for their extensions. Isn't this a huge >>> potential source of bugs? For instance if several running >>> extensions/plugins use their own custom exception classes and error >>> handlers. --
Hello, I've started using exceptions and I like it. The mechanism itself works, yet I don't know, how to display the exception messages. The following code failed (I put it in the administrator/componentName/controller/componentName.php::save() just for testing):
Of course messages might be displayed via JError::raiseNotice(), but as JError is depricated methinks this is not wise. So question: how can I display the exception messages, thank U for any reply:-) Greetings Mareike