public function __construct($message = "", $code = 0, $previous = null)
 {
     parent::__construct($message, $code, $previous);
     //todo: generate error code.
 }
 /**
  * @param StockableInterface $stockable
  * @param int $quantity
  * @param \Exception|null $previousException
  */
 public function __construct(StockableInterface $stockable, $quantity, \Exception $previousException = null)
 {
     $this->stockable = $stockable;
     parent::__construct(sprintf('Only %d %s(s) on hand, %d requested.', $stockable->getOnHand(), $stockable->getInventoryName(), $quantity), 0, $previousException);
 }
 /**
  * Конструктор
  * 
  */
 public function __construct($message, $code, $file, $line)
 {
     $this->file = $file;
     $this->line = $line;
     parent::__construct($message, $code);
 }
 public function __construct($message = 'Cannot remove items from array/collection, it is already empty', $code = 0, $previous = NULL)
 {
     parent::__construct($message, $code, $previous);
 }
 public function __construct(StockableInterface $stockable, $quantity)
 {
     parent::__construct(sprintf('Only %d %s(s) on hand, %d requested.', $stockable->getOnHand(), $stockable->getInventoryName(), $quantity));
 }
示例#6
0
 /**
  * Creates a new QueueEmptyException
  *
  * @param string $queue Queue name
  */
 public function __construct($queue)
 {
     parent::__construct('Queue ' . $queue . ' is empty.');
 }
示例#7
0
 public function __construct(string $message = 'No unique response when expecting single Entity', int $code = 0, Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }