3 namespace PHPImageWorkshop\Exception
;
6 * ImageWorkshopBaseException
8 * The inherited exception class
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
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);
34 public function __toString()
36 return __CLASS__
.": [{$this->code}]: {$this->message}\n";