getError() 공개 메소드

Error message.
public getError ( ) : string
리턴 string Error message
예제 #1
0
 /**
  * Construct Exception.
  *
  * @param \Elastica\Request  $request
  * @param \Elastica\Response $response
  */
 public function __construct(Request $request, Response $response)
 {
     $this->_request = $request;
     $this->_response = $response;
     parent::__construct($response->getError());
 }