Class BigQueryError

java.lang.Object
com.google.cloud.bigquery.BigQueryError
All Implemented Interfaces:
Serializable

public final class BigQueryError extends Object implements Serializable
Google Cloud BigQuery Error. Objects of this class represent errors encountered by the BigQuery service while executing a request. A BigQuery Job that terminated with an error has a non-null JobStatus.getError(). A job can also encounter errors during its execution that do not cause the whole job to fail (see JobStatus.getExecutionErrors()). Similarly, queries and insert all requests can cause BigQuery errors that do not mean the whole operation failed (see JobStatus.getExecutionErrors() and InsertAllResponse.getInsertErrors()). When a BigQueryException is thrown the BigQuery Error that caused it, if any, can be accessed with BigQueryException.getError().
See Also:
  • Constructor Details

  • Method Details

    • getReason

      public String getReason()
      Returns short error code that summarizes the error.
      See Also:
    • getLocation

      public String getLocation()
      Returns where the error occurred, if present.
    • getDebugInfo

      public String getDebugInfo()
    • getMessage

      public String getMessage()
      Returns a human-readable description of the error.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object