# Exception BigQueryException (2.65.0)

2.65.0 (latest) 2.62.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.2 2.56.0 2.55.3 2.54.2 2.53.0 2.52.0 2.51.0 2.50.1 2.49.0 2.48.1 2.47.0 2.46.0 2.45.0 2.44.0 2.43.3 2.42.3 2.41.0 2.40.3 2.39.1 2.38.2 2.37.2 2.36.0 2.35.0 2.34.2 2.33.2

    public final class BigQueryException extends BaseHttpServiceException

BigQuery service exception.
See Also: [Google Cloud BigQuery error codes](https://cloud.google.com/bigquery/troubleshooting-errors)

## Inherited Members

com.google.cloud.BaseServiceException.equals(java.lang.Object) com.google.cloud.BaseServiceException.getCode() com.google.cloud.BaseServiceException.getDebugInfo() com.google.cloud.BaseServiceException.getLocation() com.google.cloud.BaseServiceException.getReason() com.google.cloud.BaseServiceException.hashCode() com.google.cloud.BaseServiceException.isRetryable() com.google.cloud.BaseServiceException.isRetryable(boolean,java.io.IOException) com.google.cloud.BaseServiceException.isRetryable(java.lang.Integer,java.lang.String,boolean,java.util.Set\<com.google.cloud.BaseServiceException.Error\>) com.google.cloud.BaseServiceException.translate(com.google.cloud.RetryHelper.RetryHelperException) com.google.cloud.BaseServiceException.translate(java.util.concurrent.ExecutionException) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-) [Throwable.addSuppressed(Throwable)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable-) [Throwable.fillInStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#fillInStackTrace--) [Throwable.getCause()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getCause--) [Throwable.getLocalizedMessage()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getLocalizedMessage--) [Throwable.getMessage()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getMessage--) [Throwable.getStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getStackTrace--) [Throwable.getSuppressed()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getSuppressed--) [Throwable.initCause(Throwable)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#initCause-java.lang.Throwable-) [Throwable.printStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace--) [Throwable.printStackTrace(PrintStream)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintStream-) [Throwable.printStackTrace(PrintWriter)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintWriter-) [Throwable.setStackTrace(StackTraceElement\[\])](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement[]-) [Throwable.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#toString--)

## Constructors

### BigQueryException(int code, String message)

    public BigQueryException(int code, String message)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `code` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `message` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### BigQueryException(int code, String message, BigQueryError error)

    public BigQueryException(int code, String message, BigQueryError error)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `code` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `message` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `error` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryError` |

### BigQueryException(int code, String message, Throwable cause)

    public BigQueryException(int code, String message, Throwable cause)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `code` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `message` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `cause` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html` |

### BigQueryException(IOException exception)

    public BigQueryException(IOException exception)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `exception` | `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |

### BigQueryException(List\<BigQueryError\> errors)

    public BigQueryException(List<BigQueryError> errors)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `errors` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryError>` |

## Methods

### equals(Object obj)

    public boolean equals(Object obj)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** com.google.cloud.BaseServiceException.equals(java.lang.Object)

### getError()

    public BigQueryError getError()

Returns the [BigQueryError](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryError) that caused this exception. Returns `null` if none
exists.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryError` |   |

### getErrors()

    public List<BigQueryError> getErrors()

Returns a list of [BigQueryError](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryError)s that caused this exception. Returns `null` if
none exists.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.BigQueryError>` |   |

### hashCode()

    public int hashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** com.google.cloud.BaseServiceException.hashCode()