def failure(self) -> tuple[str, str] | None:
        """Return failure code and message of the job if present."""
        if self._inner_job().execution_status.failure:
            failure = self._inner_job().execution_status.failure
            return (failure.error_code.name, failure.error_message)
        return None
Return failure code and message of the job if present.
cirq-google/cirq_google/engine/engine_job.py