public function run_check() {
		$r = $this->run();

		if ( $r->return_code || !empty( $r->STDERR ) ) {
			throw new \RuntimeException( $r );
		}

		return $r;
	}
public function run_check() {
		$r = $this->run();

		if ( $r->return_code || !empty( $r->STDERR ) ) {
			throw new \RuntimeException( $r );
		}

		return $r;
	}
public function run_check ( ) { $ r = $ this -> run ( ) ; if ( $ r -> return_code || ! empty ( $ r -> STDERR ) ) { throw new \ RuntimeException ( $ r ) ; } return $ r ; }
Run the command, but throw an Exception on error.

@return ProcessRun
Run the command but throw an Exception on error .