Package com.gpudb
Class GPUdbBase.SubmitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.gpudb.GPUdbException
-
- com.gpudb.GPUdbBase.SubmitException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GPUdbBase
public static final class GPUdbBase.SubmitException extends GPUdbException
An exception that occurred during the submission of a request to GPUdb.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.gpudb.GPUdbException
hadConnectionFailure
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPayload()Gets the payload used inGPUdbBase.insertRecordsFromJson(com.gpudb.GPUdbBase.InsertRecordsJsonRequest, com.gpudb.GPUdbBase.JsonOptions)requests.org.apache.avro.generic.IndexedRecordgetRequest()Gets the failed request.intgetRequestSize()Gets the size in bytes of the encoded failed request, or -1 if the request was not yet encoded at the time of failure.URLgetURL()Gets the URL that the failed request was submitted to, ornullif multiple failover URLs all failed.-
Methods inherited from class com.gpudb.GPUdbException
hadConnectionFailure
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getURL
public URL getURL()
Gets the URL that the failed request was submitted to, ornullif multiple failover URLs all failed.- Returns:
- the URL
-
getRequest
public org.apache.avro.generic.IndexedRecord getRequest()
Gets the failed request.- Returns:
- the request
-
getPayload
public String getPayload()
Gets the payload used inGPUdbBase.insertRecordsFromJson(com.gpudb.GPUdbBase.InsertRecordsJsonRequest, com.gpudb.GPUdbBase.JsonOptions)requests.- Returns:
- the JSON payload
-
getRequestSize
public int getRequestSize()
Gets the size in bytes of the encoded failed request, or -1 if the request was not yet encoded at the time of failure.- Returns:
- the size of the encoded request
-
-