Skip to content

Commit 9c3409b

Browse files
docs(bigquery): add docstring for conflict exception (#171)
* docs(bigquery): add docstring for conflict exception * docs(bigquery): nit
1 parent f9f2f45 commit 9c3409b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

google/cloud/bigquery/client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ def create_dataset(
441441
google.cloud.bigquery.dataset.Dataset:
442442
A new ``Dataset`` returned from the API.
443443
444+
Raises:
445+
google.cloud.exceptions.Conflict:
446+
If the dataset already exists.
447+
444448
Example:
445449
446450
>>> from google.cloud import bigquery
@@ -496,6 +500,10 @@ def create_routine(
496500
Returns:
497501
google.cloud.bigquery.routine.Routine:
498502
A new ``Routine`` returned from the service.
503+
504+
Raises:
505+
google.cloud.exceptions.Conflict:
506+
If the routine already exists.
499507
"""
500508
reference = routine.reference
501509
path = "/projects/{}/datasets/{}/routines".format(
@@ -540,6 +548,10 @@ def create_table(self, table, exists_ok=False, retry=DEFAULT_RETRY, timeout=None
540548
Returns:
541549
google.cloud.bigquery.table.Table:
542550
A new ``Table`` returned from the service.
551+
552+
Raises:
553+
google.cloud.exceptions.Conflict:
554+
If the table already exists.
543555
"""
544556
table = _table_arg_to_table(table, default_project=self.project)
545557

0 commit comments

Comments
 (0)