The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Oct 11, 2011 4:06 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Mar 24, 2011 4:40 pm
Posts: 124
Location: Venezuela, Zulia, Maracaibo
Im creating a demo about the joomla API and just found that the class JError is deprecated and heart that this class will be dropped at 12.1

What should we use instead?

the only information i fond is here
https://github.com/joomla/joomla-platform/issues/246

_________________
-= I believe that science is the engine of prosperity =- M.K.


Top
 Profile  
 
PostPosted: Wed Oct 12, 2011 9:37 am 
Joomla! Ace
Joomla! Ace

Joined: Sat Jan 21, 2006 8:42 pm
Posts: 1211
use PHP Exception
yeah it will be dropped, but that will take a while, not before J!3.0 I guess


Top
 Profile  
 
PostPosted: Sat Feb 04, 2012 11:00 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 17, 2011 1:02 am
Posts: 13
It would be nice though to have some examples of how to use the php exception.
It is much harder now to find all functions that have been deprecated. The logs are filled with deprecated messages for the error class, which is not too helpful.


Top
 Profile  
 
PostPosted: Sat Feb 04, 2012 3:44 pm 
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 9:27 am
Posts: 527
It's used over 900 times in the core. My guess is they want to do away with the pat-based code. Surely they'll come up with an alternative.

_________________
Al Warren
This ain't my first rodeo. Red Foreman says it best.
CQDX de WR5AW


Top
 Profile  
 
PostPosted: Sat Feb 04, 2012 4:03 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Mar 24, 2011 4:40 pm
Posts: 124
Location: Venezuela, Zulia, Maracaibo
If you guys use ana IDE for developement, for example "Eclipse IDE" it just change the color of deprecated functions and show the respective message located on the function comments, you can also press control + click over the function anme to opent its code and see the deprecation message

_________________
-= I believe that science is the engine of prosperity =- M.K.


Top
 Profile  
 
PostPosted: Tue Feb 14, 2012 12:59 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Fri May 21, 2010 11:43 am
Posts: 428
Location: Aachen, Germany
While JError is deprecated we're not gonna be able to get rid of it too soon.

Stuff that should be logged and not output to the user should use JLog. For anything output to the user you're pretty much stuck with JError for now.


Top
 Profile  
 
PostPosted: Tue Feb 14, 2012 3:43 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 17, 2011 1:02 am
Posts: 13
Thank you for your reply!
I am still trying to get my head around it, but I'll figure it out.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 



Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group