public function __construct() { parent::__construct('Subject has more elements than expected.'); }
public function __construct($message = "Resource not found", $code = 0, $previous = null) { parent::__construct($message, $code, $previous); //todo: generate error code. }
/** * @param integer $expected Expected number of arguments * @param integer $actual Received number of arguments * @param \Exception $previous */ public function __construct($expected, $actual, \Exception $previous = null) { $message = sprintf('Expected %d arguments, but received %d', $expected, $actual); parent::__construct($message, 0, $previous); }
/** * Конструктор * */ public function __construct($message, $code, $file, $line) { $this->file = $file; $this->line = $line; parent::__construct($message, $code); }
/** * Returns a string representation of the exception. * * @return string The exception as a string. */ public function __toString() { return parent::__toString() . "\nLength:{$this->_length}"; }
public function __construct($message = 'The length of the passed data is invalid for the requested operation', $code = 0, $previous = NULL) { parent::__construct($message, $code, $previous); }