Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 11. Error Handling and Security > Errors, Warnings, and Notices

Errors, Warnings, and Notices

When we encounter errors it is important that we take some counter action. Joomla! provides a common error handling mechanism, which we access using the static JError class. JError takes advantage of the phpTemplate library, in particular the patError and patErrorManager classes. A complete description of the JError class and all of its methods is available in the Appendix.

Error LevelError TypeClass Method
1 (E_ERROR)ErrorJError::raiseError()
2 (E_WARNING)WarningJError::raiseWarning()
8 (E_NOTICE)NoticeJError::raiseNotice()



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial