Initial commit
[2ch-be.git] / dev-test / new / include / Exception / ImageWorkshopBaseException.php
blob81ed65359072d32c03086e2a5ee2dbcc16c646a6
1 <?php
3 namespace PHPImageWorkshop\Exception;
5 /**
6 * ImageWorkshopBaseException
7 *
8 * The inherited exception class
9 *
10 * @link http://phpimageworkshop.com
11 * @author Bjørn Børresen | Sybio (Clément Guillemain / @Sybio01)
12 * @license http://en.wikipedia.org/wiki/MIT_License
13 * @copyright Clément Guillemain
15 class ImageWorkshopBaseException extends \Exception
17 /**
18 * Constructor
20 * @param string $message
21 * @param integer $code
22 * @param Exception $previous
24 public function __construct($message, $code = 0, \Exception $previous = null)
26 parent::__construct($message, $code, $previous);
29 /**
30 * __toString method
32 * @return string
34 public function __toString()
36 return __CLASS__.": [{$this->code}]: {$this->message}\n";