/** * Initializes error handler exception. * * @param string $level * error level * @param string $message * error message * @param string $file * error file * @param string $line * error line */ public function __construct($level, $message, $file, $line) { parent::__construct(sprintf('%s: %s in %s line %d', isset($this->levels[$level]) ? $this->levels[$level] : $level, $message, $file, $line)); }
/** * * @param string $text */ public function __construct($text = 'write pending example') { parent::__construct(sprintf('todo: %s', $text)); }
/** * @param string $text */ public function __construct($text) { parent::__construct(sprintf('skipped: %s', $text)); }
public function __construct($message = "", $code = 0, Exception $previous = null, $result = 0) { parent::__construct($message, $code, $previous); $this->result = $result; }