aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/exception
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/install/exception')
-rw-r--r--phpBB/phpbb/install/exception/cannot_build_container_exception.php22
-rw-r--r--phpBB/phpbb/install/exception/installer_config_not_writable_exception.php22
-rw-r--r--phpBB/phpbb/install/exception/installer_exception.php22
-rw-r--r--phpBB/phpbb/install/exception/invalid_dbms_exception.php22
-rw-r--r--phpBB/phpbb/install/exception/invalid_service_name_exception.php69
-rw-r--r--phpBB/phpbb/install/exception/module_not_found_exception.php42
-rw-r--r--phpBB/phpbb/install/exception/task_not_found_exception.php42
-rw-r--r--phpBB/phpbb/install/exception/user_interaction_required_exception.php25
8 files changed, 266 insertions, 0 deletions
diff --git a/phpBB/phpbb/install/exception/cannot_build_container_exception.php b/phpBB/phpbb/install/exception/cannot_build_container_exception.php
new file mode 100644
index 0000000000..11be507bc9
--- /dev/null
+++ b/phpBB/phpbb/install/exception/cannot_build_container_exception.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+/**
+ * This exception should be thrown when
+ */
+class cannot_build_container_exception extends installer_exception
+{
+
+}
diff --git a/phpBB/phpbb/install/exception/installer_config_not_writable_exception.php b/phpBB/phpbb/install/exception/installer_config_not_writable_exception.php
new file mode 100644
index 0000000000..3f3b03f178
--- /dev/null
+++ b/phpBB/phpbb/install/exception/installer_config_not_writable_exception.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+/**
+ * Exception for the event when installer config is not writable to disk
+ */
+class installer_config_not_writable_exception extends installer_exception
+{
+
+}
diff --git a/phpBB/phpbb/install/exception/installer_exception.php b/phpBB/phpbb/install/exception/installer_exception.php
new file mode 100644
index 0000000000..c37950d05c
--- /dev/null
+++ b/phpBB/phpbb/install/exception/installer_exception.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+/**
+ * Installer's base exception
+ */
+class installer_exception extends \Exception
+{
+
+}
diff --git a/phpBB/phpbb/install/exception/invalid_dbms_exception.php b/phpBB/phpbb/install/exception/invalid_dbms_exception.php
new file mode 100644
index 0000000000..ccb35bc237
--- /dev/null
+++ b/phpBB/phpbb/install/exception/invalid_dbms_exception.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+/**
+ * This exception should be thrown when
+ */
+class invalid_dbms_exception extends installer_exception
+{
+
+}
diff --git a/phpBB/phpbb/install/exception/invalid_service_name_exception.php b/phpBB/phpbb/install/exception/invalid_service_name_exception.php
new file mode 100644
index 0000000000..e64cd2026f
--- /dev/null
+++ b/phpBB/phpbb/install/exception/invalid_service_name_exception.php
@@ -0,0 +1,69 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+class invalid_service_name_exception extends installer_exception
+{
+ /**
+ * @var string
+ */
+ private $params;
+
+ /**
+ * @var string
+ */
+ private $error;
+
+ /**
+ * Constructor
+ *
+ * @param string $error The name of the missing installer module
+ * @param array $params Additional values for message translation
+ */
+ public function __construct($error, $params = array())
+ {
+ $this->error = $error;
+ $this->params = $params;
+ }
+
+ /**
+ * Returns the language entry's name for the error
+ *
+ * @return string
+ */
+ public function get_error()
+ {
+ return $this->error;
+ }
+
+ /**
+ * Returns parameters for the language entry, if there is any
+ *
+ * @return array
+ */
+ public function get_params()
+ {
+ return $this->params;
+ }
+
+ /**
+ * Returns true, if there are any parameters set
+ *
+ * @return bool
+ */
+ public function has_params()
+ {
+ return (sizeof($this->params) !== 0);
+ }
+}
diff --git a/phpBB/phpbb/install/exception/module_not_found_exception.php b/phpBB/phpbb/install/exception/module_not_found_exception.php
new file mode 100644
index 0000000000..9fa03fad6e
--- /dev/null
+++ b/phpBB/phpbb/install/exception/module_not_found_exception.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+class module_not_found_exception extends installer_exception
+{
+ /**
+ * @var string
+ */
+ private $module_service_name;
+
+ /**
+ * Constructor
+ *
+ * @param string $module_service_name The name of the missing installer module
+ */
+ public function __construct($module_service_name)
+ {
+ $this->module_service_name = $module_service_name;
+ }
+
+ /**
+ * Returns the missing installer module's service name
+ *
+ * @return string
+ */
+ public function get_module_service_name()
+ {
+ return $this->module_service_name;
+ }
+}
diff --git a/phpBB/phpbb/install/exception/task_not_found_exception.php b/phpBB/phpbb/install/exception/task_not_found_exception.php
new file mode 100644
index 0000000000..11486cc6b0
--- /dev/null
+++ b/phpBB/phpbb/install/exception/task_not_found_exception.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+class task_not_found_exception extends installer_exception
+{
+ /**
+ * @var string
+ */
+ private $task_service_name;
+
+ /**
+ * Constructor
+ *
+ * @param string $task_service_name The name of the missing installer module
+ */
+ public function __construct($task_service_name)
+ {
+ $this->task_service_name = $task_service_name;
+ }
+
+ /**
+ * Returns the missing installer task's service name
+ *
+ * @return string
+ */
+ public function get_task_service_name()
+ {
+ return $this->task_service_name;
+ }
+}
diff --git a/phpBB/phpbb/install/exception/user_interaction_required_exception.php b/phpBB/phpbb/install/exception/user_interaction_required_exception.php
new file mode 100644
index 0000000000..d65a448841
--- /dev/null
+++ b/phpBB/phpbb/install/exception/user_interaction_required_exception.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\install\exception;
+
+/**
+ * This exception should be thrown when user interaction is inevitable
+ *
+ * Note: Please note that the output should already be setup for the user
+ * when you use throw this exception
+ */
+class user_interaction_required_exception extends installer_exception
+{
+
+}