コード例 #1
0
 public function __construct($message, ConstraintViolationListInterface $violations)
 {
     $message .= ' Violations: ' . $violations->__toString();
     parent::__construct($message);
     $this->violations = $violations;
 }
コード例 #2
0
ファイル: Request.php プロジェクト: web3d/mincart
 /**
  * @param \Exception $previous
  * @param ResultObjectInterface $result
  */
 public function __construct(\Exception $previous = null, ResultObjectInterface $result = null)
 {
     $this->message .= ' Response data: ' . serialize($result);
     parent::__construct($this->message, $this->code, $previous);
     $this->result = $result;
 }