示例#1
0
 /**
  * ErrorException constructor.
  *
  * @param ErrorResponse $errorResponse
  * @param mixed $extraInfo
  */
 public function __construct(ErrorResponse $errorResponse, $extraInfo = null)
 {
     $this->errorResponse = $errorResponse;
     $this->message = $this->errorResponse->__toString();
     $this->extraInfo = $extraInfo;
     if (is_array($extraInfo) && isset($extraInfo['query_string'])) {
         $this->message .= " while executing \"" . $extraInfo['query_string'] . "\"";
     }
 }