Ejemplo n.º 1
0
 /**
  * This constructor creates a new Overflow Exception.
  *
  * @access public
  * @param string $message                                   the error message
  * @param array $variables                                  the translation variables
  * @param integer $code                                     the exception code
  */
 public function __construct($message = '', array $variables = null, $code = 0)
 {
     parent::__construct(empty($variables) ? (string) $message : strtr((string) $message, $variables), (int) $code);
     $this->code = (int) $code;
     // Known bug: http://bugs.php.net/39615
 }
Ejemplo n.º 2
0
 public function __construct($message = "", $code = 0, $previous = null)
 {
     parent::__construct($message, $code, $previous);
     //todo: generate error code.
 }
 public function __construct($message = 'Operation resulted in a value overflow', $code = 0, $previous = NULL)
 {
     parent::__construct($message, $code, $previous);
 }
Ejemplo n.º 4
0
 /**
  * Конструктор
  * 
  */
 public function __construct($message, $code, $file, $line)
 {
     $this->file = $file;
     $this->line = $line;
     parent::__construct($message, $code);
 }
Ejemplo n.º 5
0
 /**
  * @see parent
  *
  * @param string $message
  * @param array $arguments
  */
 public function __construct($message, $arguments)
 {
     parent::__construct($message, 0, null);
     $this->_arguments = $arguments;
 }