43 lines
832 B
PHP
Executable file
43 lines
832 B
PHP
Executable file
<?php
|
|
|
|
use OpenCloud\Common\Error\BadResponseError;
|
|
use OpenCloud\Common\Error\BaseError;
|
|
use OpenCloud\Common\Error\NotImplementedError;
|
|
use OpenCloud\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){
|
|
|
|
}
|
|
|
|
public function OtherException($error){
|
|
$this->app->setOutput("Error", $error->getMessage);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
?>
|