summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers/g2_import.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-03-31 07:14:06 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-03-31 07:14:06 -0700
commitf2ed1eeab2074fc004c604d02bbf2ebe7c1177db (patch)
treefe0f4037e44cd33d5716d1a44930ed19ca3a34fc /modules/g2_import/helpers/g2_import.php
parente56473c5d78842210b7825300bd9b373c104cb83 (diff)
parentca977dce516b9e2ca9539db69fce188ed33d971c (diff)
Merge branch 'master' into talmdal_dev
Conflicts: modules/rest/controllers/rest.php
Diffstat (limited to 'modules/g2_import/helpers/g2_import.php')
-rw-r--r--modules/g2_import/helpers/g2_import.php22
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