Change CdbException to subclass Exception
authorChad Horohoe <chadh@wikimedia.org>
Thu, 21 Nov 2013 23:42:05 +0000 (15:42 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Tue, 26 Nov 2013 23:28:54 +0000 (15:28 -0800)
Nothing really makes use of this yet outside of core, so should be
ok and minimal impact.

Change-Id: Iab9f7fe0df41d8020d6ccd4e860af6d045948aee

includes/utils/Cdb.php

index 0995aed..f556ee7 100644 (file)
@@ -155,6 +155,7 @@ abstract class CdbWriter {
 }
 
 /**
- * Exception for Cdb errors
+ * Exception for Cdb errors.
+ * This explicitly doesn't subclass MWException to encourage reuse.
  */
-class CdbException extends MWException {}
+class CdbException extends Exception {}