diff --git a/src/Civicrm.php b/src/Civicrm.php
index 9034f9a..678ba86 100644
--- a/src/Civicrm.php
+++ b/src/Civicrm.php
@@ -2,6 +2,7 @@
namespace Drupal\civicrm;
+use Drupal\civicrm\Exception\CiviCRMConfigException;
use Drupal\Core\Config\ConfigException;
use Drupal\Core\Session\AccountInterface;
@@ -44,7 +45,7 @@ public function initialize() {
$output = include_once $settingsFile;
if ($output == FALSE) {
$msg = t("The CiviCRM settings file (civicrm.settings.php) was not found in the expected location: %location", ['%location' => $settingsFile]) . ' ' . $errorMsgAdd;
- throw new ConfigException($msg);
+ throw new CiviCRMConfigException($msg);
}
// This does pretty much all of the civicrm initialization.
@@ -53,7 +54,7 @@ public function initialize() {
$msg = t("The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (!1).",
['!1' => $settingsFile]
) . t("civicrm_root is currently set to: !1.", ['!1' => $civicrm_root]) . $errorMsgAdd;
- throw new ConfigException($msg);
+ throw new CiviCRMConfigException($msg);
}
// Initialize the system by creating a config object.
diff --git a/src/Exception/CiviCRMConfigException.php b/src/Exception/CiviCRMConfigException.php
new file mode 100644
index 0000000..1805a1e
--- /dev/null
+++ b/src/Exception/CiviCRMConfigException.php
@@ -0,0 +1,10 @@
+