Beispiel #1
0
 /**
  * Creates a new exception
  *
  * @param string        $message        The exception message
  * @param CallResult    $cliCallResult  The call result that caused the exception
  */
 public function __construct($message, CallResult $cliCallResult)
 {
     $this->cliCallResult = $cliCallResult;
     parent::__construct(sprintf($message . ' [%s]', $cliCallResult->getStdErr()), $cliCallResult->getReturnCode());
 }