@java.lang.Override
  public com.google.cloud.workflows.executions.v1.Execution.Error getError() {
    return error_ == null
        ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()
        : error_;
  }
<pre>
Output only. The error which caused the execution to finish prematurely.
The value is only present if the execution's state is `FAILED`
or `CANCELLED`.
</pre>

<code>
.google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return The error.
java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java