move all exception declaration to their own file

This commit is contained in:
Gilles Crettenand
2015-05-29 09:39:25 +02:00
parent 16860ce7f7
commit 28b4b8a985
6 changed files with 50 additions and 49 deletions

View File

@@ -1,26 +1,5 @@
<?php
class WebException extends Exception
{
private $excname;
/**
* @param string $name
* @param string $reason
* @param int $code
*/
function __construct($name, $reason, $code)
{
$this->excname = $name;
parent::__construct($reason, $code);
}
public function getName()
{
return $this->excname;
}
}
abstract class WebService
{
private $func = null;