Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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 Level | Error Type | Class Method |
|---|---|---|
| 1 (E_ERROR) | Error | JError::raiseError() |
| 2 (E_WARNING) | Warning | JError::raiseWarning() |
| 8 (E_NOTICE) | Notice | JError::raiseNotice() |