summaryrefslogtreecommitdiff
path: root/server/core/ErrorManagement.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/core/ErrorManagement.php')
-rwxr-xr-xserver/core/ErrorManagement.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/server/core/ErrorManagement.php b/server/core/ErrorManagement.php
new file mode 100755
index 0000000..6bff61f
--- /dev/null
+++ b/server/core/ErrorManagement.php
@@ -0,0 +1,39 @@
+<?php
+
+use OpenStack\Common\Error\BadResponseError;
+use OpenStack\Common\Error\BaseError;
+use OpenStack\Common\Error\NotImplementedError;
+use OpenStack\Common\Error\UserInputError;
+
+
+Class errorManagement{
+
+ protected $app;
+
+
+ public function __construct($args){
+
+ $this->app = $args;
+
+ }
+
+ public function BaseErrorHandler($error){
+
+ }
+
+ public function BadResponseHandler($error){
+ $this->app->setOutput("Error", "Erreur Interne, Merci de contacter un administrateur!");
+ }
+
+ public function NotImplementedHandler($error){
+ $this->app->setOutput("Error", "Erreur Interne, Merci de contacter un administrateur!");
+ }
+
+ public function UserInputHandler($error){
+
+ }
+
+
+}
+
+?> \ No newline at end of file