/** * * @param type $message * @param type $code * @param Exception $innerException * @return void */ public function __construct($message = null, $code = null, Exception $innerException = null) { if ($message === null) { $message = 'Failed to inject'; } parent::__construct($message, $code, $innerException); }
/** * * @param string $name * @param string $message * @param int $code * @param Exception $innerException */ public function __construct($name, $message = null, $code = null, Exception $innerException = null) { parent::__construct($message, $code, $innerException); $this->name = (string) $name; }