# Exception BigQuerySQLException (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 BigQuerySQLException extends SQLException

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

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [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.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [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--) [SQLException.getErrorCode()](https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html#getErrorCode--) [SQLException.getNextException()](https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html#getNextException--) [SQLException.getSQLState()](https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html#getSQLState--) [SQLException.iterator()](https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html#iterator--) [SQLException.setNextException(SQLException)](https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html#setNextException-java.sql.SQLException-)

## Constructors

### BigQuerySQLException()

    public BigQuerySQLException()

### BigQuerySQLException(String msg)

    public BigQuerySQLException(String msg)

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

### BigQuerySQLException(String reason, String sqlState, int errorCode, Throwable cause, List\<BigQueryError\> errors)

    public BigQuerySQLException(String reason, String sqlState, int errorCode, Throwable cause, List<BigQueryError> errors)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `reason` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `sqlState` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `errorCode` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `cause` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html` |
| `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>` |

### BigQuerySQLException(String reason, String sqlState, int errorCode, List\<BigQueryError\> errors)

    public BigQuerySQLException(String reason, String sqlState, int errorCode, List<BigQueryError> errors)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `reason` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `sqlState` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `errorCode` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `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>` |

### BigQuerySQLException(String reason, String sqlState, List\<BigQueryError\> errors)

    public BigQuerySQLException(String reason, String sqlState, List<BigQueryError> errors)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `reason` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `sqlState` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `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>` |

### BigQuerySQLException(String reason, Throwable cause, List\<BigQueryError\> errors)

    public BigQuerySQLException(String reason, Throwable cause, List<BigQueryError> errors)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `reason` | `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` |
| `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>` |

### BigQuerySQLException(String reason, List\<BigQueryError\> errors)

    public BigQuerySQLException(String reason, List<BigQueryError> errors)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `reason` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `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>` |

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

    public BigQuerySQLException(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>` |

### BigQuerySQLException(List\<BigQueryError\> errors, Throwable cause)

    public BigQuerySQLException(List<BigQueryError> errors, Throwable cause)

| **Parameters** ||
|---|---|
| **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>` |
| `cause` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html` |

## Methods

### 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>` |   |