Package com.google.cloud.bigquery
Class BigQueryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.cloud.BaseServiceException
-
- com.google.cloud.http.BaseHttpServiceException
-
- com.google.cloud.bigquery.BigQueryException
-
- All Implemented Interfaces:
Serializable
public final class BigQueryException extends com.google.cloud.http.BaseHttpServiceException
BigQuery service exception.- See Also:
- Google Cloud BigQuery error codes, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BigQueryException(int code, String message)
BigQueryException(int code, String message, BigQueryError error)
BigQueryException(int code, String message, Throwable cause)
BigQueryException(IOException exception)
BigQueryException(List<BigQueryError> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
BigQueryError
getError()
Returns theBigQueryError
that caused this exception.List<BigQueryError>
getErrors()
Returns a list ofBigQueryError
s that caused this exception.int
hashCode()
-
Methods inherited from class com.google.cloud.BaseServiceException
getCode, getDebugInfo, getLocation, getReason, isRetryable, isRetryable, isRetryable, translate, translate
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BigQueryException
public BigQueryException(int code, String message)
-
BigQueryException
public BigQueryException(int code, String message, BigQueryError error)
-
BigQueryException
public BigQueryException(List<BigQueryError> errors)
-
BigQueryException
public BigQueryException(IOException exception)
-
-
Method Detail
-
getError
public BigQueryError getError()
Returns theBigQueryError
that caused this exception. Returnsnull
if none exists.
-
getErrors
public List<BigQueryError> getErrors()
Returns a list ofBigQueryError
s that caused this exception. Returnsnull
if none exists.
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classcom.google.cloud.BaseServiceException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.google.cloud.BaseServiceException
-
-