This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Improve legacy for old, deprecated exceptions.

  • Loading branch information...
realityking committed May 3, 2012
1 parent af7d36d commit b26164a2d004c4d8c738009ac7e2646a77fb096c
Showing with 4 additions and 3 deletions.
  1. +1 −2 libraries/legacy/database/exception.php
  2. +3 −1 libraries/legacy/log/logexception.php
@@ -9,8 +9,7 @@
defined('JPATH_PLATFORM') or die;
-// Deprecation warning.
-JLog::add('JDatabaseException is deprecated, use SPL Exceptions instead.', JLog::NOTICE, 'deprecated');
+JLog::add('JDatabaseException is deprecated, use SPL Exceptions instead.', JLog::WARNING, 'deprecated');
/**
* Exception class definition for the Database subpackage.
@@ -9,6 +9,8 @@
defined('JPATH_PLATFORM') or die;
+JLog::add('LogException is deprecated, use SPL Exceptions instead.', JLog::WARNING, 'deprecated');
+
/**
* Exception class definition for the Log subpackage.
*
@@ -17,6 +19,6 @@
* @since 11.1
* @deprecated 12.3 Use semantic exceptions instead
*/
-class LogException extends Exception
+class LogException extends RuntimeException
{
}

0 comments on commit b26164a

Please sign in to comment.