Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public BigQueryError(String reason, String location, String message) {
/**
* Returns short error code that summarizes the error.
*
* @see <a href="https://cloud.google.com/bigquery/troubleshooting-errors">Troubleshooting
* Errors</a>
* @see <a href="https://docs.cloud.google.com/bigquery/docs/errors">BigQuery API HTTP status and
* error codes</a>
*/
public String getReason() {
return reason;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
/**
* BigQuery service exception.
*
* @see <a href="https://cloud.google.com/bigquery/troubleshooting-errors">Google Cloud BigQuery
* @see <a href="https://docs.cloud.google.com/bigquery/docs/errors">BigQuery API HTTP status and
* error codes</a>
* @see <a href="https://docs.cloud.google.com/bigquery/docs/error-messages">BigQuery client and
* connectivity error messages</a>
*/
public final class BigQueryException extends BaseHttpServiceException {

// see: https://cloud.google.com/bigquery/troubleshooting-errors
// see: https://docs.cloud.google.com/bigquery/docs/errors
Comment thread
lqiu96 marked this conversation as resolved.
Resolved
private static final Set<Error> RETRYABLE_ERRORS =
ImmutableSet.of(
new Error(500, null), new Error(502, null), new Error(503, null), new Error(504, null));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* BigQuery service exception.
*
* @see <a href="https://cloud.google.com/bigquery/troubleshooting-errors">Google Cloud BigQuery
* @see <a href="https://docs.cloud.google.com/bigquery/docs/errors">BigQuery API HTTP status and
* error codes</a>
*/
public final class BigQuerySQLException extends SQLException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ public State getState() {
* Returns the final error result of the job. If present, indicates that the job has completed and
* was unsuccessful.
*
* @see <a href="https://cloud.google.com/bigquery/troubleshooting-errors">Troubleshooting
* Errors</a>
* @see <a href="https://docs.cloud.google.com/bigquery/docs/errors">BigQuery API HTTP status and
* error codes</a>
*/
@Nullable
public BigQueryError getError() {
Expand All @@ -126,8 +126,8 @@ public BigQueryError getError() {
* Returns all errors encountered during the running of the job. Errors here do not necessarily
* mean that the job has completed or was unsuccessful.
*
* @see <a href="https://cloud.google.com/bigquery/troubleshooting-errors">Troubleshooting
* Errors</a>
* @see <a href="https://docs.cloud.google.com/bigquery/docs/errors">BigQuery API HTTP status and
* error codes</a>
*/
public List<BigQueryError> getExecutionErrors() {
return executionErrors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static void simpleApp(String projectId) {
&& queryJob.getStatus().getExecutionErrors().size() > 0) {
// TODO(developer): Handle errors here. An error here do not necessarily mean that the job
// has completed or was unsuccessful.
// For more details: https://cloud.google.com/bigquery/troubleshooting-errors
// For more details: https://docs.cloud.google.com/bigquery/docs/errors
Comment thread
lqiu96 marked this conversation as resolved.
Resolved
throw new RuntimeException("An unhandled error has occurred");
}
// [END bigquery_simple_app_query]
Expand Down
Loading