Class BigQueryError (2.46.0)

publicfinalclass BigQueryErrorimplementsSerializable

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().

Inheritance

Object > BigQueryError

Implements

Serializable

Constructors

BigQueryError(String reason, String location, String message)

publicBigQueryError(Stringreason,Stringlocation,Stringmessage)
Parameters
Name Description
reason String
location String
message String

BigQueryError(String reason, String location, String message, String debugInfo)

publicBigQueryError(Stringreason,Stringlocation,Stringmessage,StringdebugInfo)
Parameters
Name Description
reason String
location String
message String
debugInfo String

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDebugInfo()

publicStringgetDebugInfo()
Returns
Type Description
String

getLocation()

publicStringgetLocation()

Returns where the error occurred, if present.

Returns
Type Description
String

getMessage()

publicStringgetMessage()

Returns a human-readable description of the error.

Returns
Type Description
String

getReason()

publicStringgetReason()

Returns short error code that summarizes the error. See Also: Troubleshooting Errors

Returns
Type Description
String

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.