Package com.google.cloud.bigquery
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-nullJobStatus.getError()
. A job can also encounter errors during its execution that do not cause the whole job to fail (seeJobStatus.getExecutionErrors()
). Similarly, queries and insert all requests can cause BigQuery errors that do not mean the whole operation failed (seeJobStatus.getExecutionErrors()
andInsertAllResponse.getInsertErrors()
). When aBigQueryException
is thrown the BigQuery Error that caused it, if any, can be accessed withBigQueryException.getError()
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BigQueryError(String reason, String location, String message)
BigQueryError(String reason, String location, String message, String debugInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDebugInfo()
String
getLocation()
Returns where the error occurred, if present.String
getMessage()
Returns a human-readable description of the error.String
getReason()
Returns short error code that summarizes the error.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getReason
public String getReason()
Returns short error code that summarizes the error.- See Also:
- Troubleshooting Errors
-
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.
-
-