Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
What to use instead of JError?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
TDZWeb  
View profile  
 More options Jul 28 2012, 7:33 pm
From: TDZWeb <webmas...@tdzwebdesign.no>
Date: Sat, 28 Jul 2012 16:33:04 -0700 (PDT)
Local: Sat, Jul 28 2012 7:33 pm
Subject: What to use instead of JError?

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Troy  
View profile  
 More options Jul 28 2012, 11:57 pm
From: Troy <t...@hallhome.us>
Date: Sat, 28 Jul 2012 22:57:26 -0500
Local: Sat, Jul 28 2012 11:57 pm
Subject: Re: [jgen] What to use instead of JError?

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
b2z  
View profile  
 More options Jul 30 2012, 7:15 am
From: b2z <bzzj...@gmail.com>
Date: Mon, 30 Jul 2012 04:15:12 -0700 (PDT)
Local: Mon, Jul 30 2012 7:15 am
Subject: Re: [jgen] What to use instead of JError?

Hi!

Can someone provide info about that? And interesting to know - why this was
done :)

Best regards,
Dmitry.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
b2z  
View profile   Translate to Translated (View Original)
 More options Jul 30 2012, 8:10 am
From: b2z <bzzj...@gmail.com>
Date: Mon, 30 Jul 2012 05:10:19 -0700 (PDT)
Local: Mon, Jul 30 2012 8:10 am
Subject: Re: [jgen] What to use instead of JError?

Nevermind, I found it :)
https://groups.google.com/forum/#!topic/joomla-dev-framework/kwqjy1Go...
http://docs.joomla.org/Exceptions_and_Logging_in_Joomla_1.7_and_Jooml...

понедельник, 30 июля 2012 г., 14:15:12 UTC+3 пользователь b2z написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TDZWeb  
View profile  
 More options Jul 31 2012, 2:43 am
From: TDZWeb <webmas...@tdzwebdesign.no>
Date: Mon, 30 Jul 2012 23:43:52 -0700 (PDT)
Local: Tues, Jul 31 2012 2:43 am
Subject: Re: [jgen] What to use instead of JError?

Thank you, that was the information I was looking for.

kl. 14:10:19 UTC+2 mandag 30. juli 2012 skrev b2z følgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hoochicken  
View profile  
 More options Sep 24 2012, 5:10 am
From: hoochicken <mareike.rie...@ql.de>
Date: Mon, 24 Sep 2012 02:10:04 -0700 (PDT)
Local: Mon, Sep 24 2012 5:10 am
Subject: Re: [jgen] What to use instead of JError?

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):

try {throw new JException(JText::_('COM_MYCOMPONENT_FORM_INVALID'), 101);}
catch (JException $e) {
?$e->setError($e->getMessage());?OR?$this->setError($e->getMessage());? }

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »