diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-03-31 07:14:06 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-03-31 07:14:06 -0700 |
commit | f2ed1eeab2074fc004c604d02bbf2ebe7c1177db (patch) | |
tree | fe0f4037e44cd33d5716d1a44930ed19ca3a34fc /modules/g2_import/helpers | |
parent | e56473c5d78842210b7825300bd9b373c104cb83 (diff) | |
parent | ca977dce516b9e2ca9539db69fce188ed33d971c (diff) |
Merge branch 'master' into talmdal_dev
Conflicts:
modules/rest/controllers/rest.php
Diffstat (limited to 'modules/g2_import/helpers')
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 456c13c4..575d02bb 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -265,7 +265,7 @@ class g2_import_Core { $e); } } - + break; case GROUP_ALL_USERS: @@ -1203,23 +1203,3 @@ function g2() { return $args; } } - -/** - * A wrapper for exceptions to report more details in case - * it's a ORM validation exception. - */ -class G2_Import_Exception extends Exception { - public function __construct($message, Exception $previous=null, $additional_messages=null) { - if ($additional_messages) { - $message .= "\n" . implode("\n", $additional_messages); - } - if ($previous && $previous instanceof ORM_Validation_Exception) { - $message .= "\nORM validation errors: " . print_r($previous->validation->errors(), true); - } - if ($previous) { - $message .= "\n" . (string) $previous; - } - // The $previous parameter is supported in PHP 5.3.0+. - parent::__construct($message); - } -}
\ No newline at end of file |