diff options
Diffstat (limited to 'modules/field/field.module')
-rw-r--r-- | modules/field/field.module | 9 |
1 files changed, 9 insertions, 0 deletions
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. */ |