8000 Tie BigQueryError to BigQueryException · Issue #444 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

Tie BigQueryError to BigQueryException #444

@mziccard

Description

@mziccard

BigQueryErrors are returned as part of a job state, as the result of a query operation and as a response to insert all. In all the above cases a BigQueryException is not thrown.

When a request fails the service returns an error in the form:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "notFound",
    "message": "Not found: Table gcloud-devel:dataset.view"
   }
  ],
  "code": 404,
  "message": "Not found: Table gcloud-devel:dataset.view"
 }
}

So we could add a BigQueryError field to BigQueryException containing the error that caused the exception.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: bigqueryIssues related to the BigQuery API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0