git-svn-id: https://msi/svn/firstRepo/Service/trunk@23 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -1,38 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace PHPImageWorkshop\Exception;
|
||||
|
||||
/**
|
||||
* ImageWorkshopBaseException
|
||||
*
|
||||
* The inherited exception class
|
||||
*
|
||||
* @link http://phpimageworkshop.com
|
||||
* @author Bjørn Børresen | Sybio (Clément Guillemain / @Sybio01)
|
||||
* @license http://en.wikipedia.org/wiki/MIT_License
|
||||
* @copyright Clément Guillemain
|
||||
*/
|
||||
class ImageWorkshopBaseException extends \Exception
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $message
|
||||
* @param integer $code
|
||||
* @param Exception $previous
|
||||
*/
|
||||
public function __construct($message, $code = 0, \Exception $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* __toString method
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return __CLASS__.": [{$this->code}]: {$this->message}\n";
|
||||
}
|
||||
<?php
|
||||
|
||||
namespace PHPImageWorkshop\Exception;
|
||||
|
||||
/**
|
||||
* ImageWorkshopBaseException
|
||||
*
|
||||
* The inherited exception class
|
||||
*
|
||||
* @link http://phpimageworkshop.com
|
||||
* @author Bjørn Børresen | Sybio (Clément Guillemain / @Sybio01)
|
||||
* @license http://en.wikipedia.org/wiki/MIT_License
|
||||
* @copyright Clément Guillemain
|
||||
*/
|
||||
class ImageWorkshopBaseException extends \Exception
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $message
|
||||
* @param integer $code
|
||||
* @param Exception $previous
|
||||
*/
|
||||
public function __construct($message, $code = 0, \Exception $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* __toString method
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return __CLASS__.": [{$this->code}]: {$this->message}\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user