--- modules/field/field.module 2010-03-12 14:51:40.000000000 -0500 +++ modules/field/field.module.new 2010-03-23 10:10:52.000000000 -0400 @@ -5,6 +5,17 @@ * Attach custom data fields to Drupal entities. */ +/** + * Base class for all exceptions thrown by Field API functions. + * + * This class has no functionality of its own other than allowing all + * Field API exceptions to be caught by a single catch block. + * + * According to http://php.net/manual/en/keyword.extends.php + * parent classes should be defined before their child classes. + */ +class FieldException extends Exception {} + /* * Load all public Field API functions. Drupal currently has no * mechanism for auto-loading core APIs, so we have to load them on @@ -116,14 +127,6 @@ define('FIELD_QUERY_COMPLETE', 'FIELD_QU */ /** - * Base class for all exceptions thrown by Field API functions. - * - * This class has no functionality of its own other than allowing all - * Field API exceptions to be caught by a single catch block. - */ -class FieldException extends Exception {} - -/** * Exception class thrown by hook_field_update_forbid(). */ class FieldUpdateForbiddenException extends FieldException {}