Example #1
0
 /**
  * @param MultiExec $transaction Transaction that generated the exception.
  * @param string    $message     Error message.
  * @param int       $code        Error code.
  */
 public function __construct(MultiExec $transaction, $message, $code = null)
 {
     parent::__construct($message, $code);
     $this->transaction = $transaction;
 }
 /**
  * @param ConnectionInterface $connection Connection that generated the exception.
  * @param string $message Error message.
  * @param int $code Error code.
  * @param \Exception $innerException Inner exception for wrapping the original error.
  */
 public function __construct(ConnectionInterface $connection, $message = null, $code = null, \Exception $innerException = null)
 {
     parent::__construct($message, $code, $innerException);
     $this->connection = $connection;
 }