From eecab1083a718ccf18e6451df6108803f4d0c1be Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 26 Mar 2009 13:31:28 +0000 Subject: #369964 by yched and bjaspan: Refactor field validation and error reporting. Field API no longer coupled to Form API. Hooray. --- modules/field/field.module | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/field/field.module') diff --git a/modules/field/field.module b/modules/field/field.module index 2f93cea22..8d19f47ed 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -78,6 +78,15 @@ define('FIELD_LOAD_CURRENT', 'FIELD_LOAD_CURRENT'); */ define('FIELD_LOAD_REVISION', 'FIELD_LOAD_REVISION'); + +/** + * 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 {} + /** * Implementation of hook_flush_caches. */ -- cgit v1.2.3