Package google.registry.bigquery
Class BigqueryJobFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
google.registry.bigquery.BigqueryJobFailureException
- All Implemented Interfaces:
Serializable
Generic exception to throw if a Bigquery job fails.
- See Also:
-
Constructor Summary
ConstructorDescriptionBigqueryJobFailureException
(String message, Throwable cause, com.google.api.services.bigquery.model.JobStatus jobStatus, com.google.api.client.googleapis.json.GoogleJsonError jsonError) -
Method Summary
Modifier and TypeMethodDescriptionstatic BigqueryJobFailureException
create
(com.google.api.client.googleapis.json.GoogleJsonResponseException cause) Create an error for JSON server response errors.static BigqueryJobFailureException
create
(com.google.api.services.bigquery.model.JobStatus jobStatus) Create an error from a failed job.static BigqueryJobFailureException
create
(IOException cause) DelegateIOException
errors, checking forGoogleJsonResponseException
Returns a short error code describing why this job failed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BigqueryJobFailureException
-
-
Method Details
-
create
DelegateIOException
errors, checking forGoogleJsonResponseException
-
create
public static BigqueryJobFailureException create(com.google.api.client.googleapis.json.GoogleJsonResponseException cause) Create an error for JSON server response errors. -
create
public static BigqueryJobFailureException create(com.google.api.services.bigquery.model.JobStatus jobStatus) Create an error from a failed job. -
getReason
Returns a short error code describing why this job failed.Sample Reasons:
"duplicate"
: The table you're trying to create already exists."invalidQuery"
: Query syntax error of some sort."unknown"
: Non-Bigquery errors.
- See Also:
-
getMessage
- Overrides:
getMessage
in classThrowable
-