summaryrefslogtreecommitdiff
path: root/server/core/ErrorManagement.php
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-04-27 14:22:59 +0200
committerEoleDev <EoleDev@outlook.fr>2016-04-27 14:22:59 +0200
commit1d42345e07b2ef557de3c5049864e6885632b9e9 (patch)
treed84f1c5605bd0bcb2a35dfbe377ed60349c86532 /server/core/ErrorManagement.php
parent5263cf00a253891396c442fe5be29762fb8be50d (diff)
End of comments
Diffstat (limited to 'server/core/ErrorManagement.php')
-rwxr-xr-xserver/core/ErrorManagement.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/server/core/ErrorManagement.php b/server/core/ErrorManagement.php
index 0e315a7..130c488 100755
--- a/server/core/ErrorManagement.php
+++ b/server/core/ErrorManagement.php
@@ -1,6 +1,6 @@
<?php
/**
-* File containing the Errormanagement Class.
+* File containing the errorManagement Class.
*
* @version 1.0 Initialisation of this file
* @since 1.0 Core application's file
@@ -14,8 +14,14 @@ use OpenCloud\Common\Error\BaseError;
use OpenCloud\Common\Error\NotImplementedError;
use OpenCloud\Common\Error\UserInputError;
-
+/**
+* errorManagement Class of the back-end application
+*
+* Management of error
+*
+*/
Class errorManagement{
+
/** @var App $app protected, contains the main app object */
protected $app;
@@ -37,7 +43,7 @@ Class errorManagement{
*
* @param Exception $error the exception triggered
*
- * @return NULL
+ * @return void
*/
public function BaseErrorHandler($error){
$this->app->setOutput("Error", "BaseError");
@@ -48,7 +54,7 @@ Class errorManagement{
*
* @param Exception $error the exception triggered
*
- * @return NULL
+ * @return void
*/
public function BadResponseHandler($error){
$statusCode = $error->getResponse()->getStatusCode();
@@ -88,7 +94,7 @@ Class errorManagement{
*
* @param Exception $error the exception triggered
*
- * @return NULL
+ * @return void
*/
public function NotImplementedHandler($error){
$this->app->setOutput("Error", "Internal error (not implemented yet), please contact an administrator");
@@ -99,7 +105,7 @@ Class errorManagement{
*
* @param Exception $error the exception triggered
*
- * @return NULL
+ * @return void
*/
public function UserInputHandler($error){
$this->app->setOutput("Error", "UserInputError");
@@ -110,7 +116,7 @@ Class errorManagement{
*
* @param Exception $error the exception triggered
*
- * @return NULL
+ * @return void
*/
public function OtherException($error){
$this->app->setOutput("Error", $error->getMessage());