Class BigQueryCompositeHandler
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.handlers.CompositeHandler
-
- com.amazonaws.athena.connectors.google.bigquery.BigQueryCompositeHandler
-
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class BigQueryCompositeHandler extends CompositeHandler
-
-
Constructor Summary
Constructors Constructor Description BigQueryCompositeHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExceptionhandleBigQueryException(Exception e)Transforms BigQuery exceptions into AthenaConnectorException with appropriate error code.ExceptionhandleException(Exception e)-
Methods inherited from class com.amazonaws.athena.connector.lambda.handlers.CompositeHandler
handleRequest, handleRequest, mapHTTPErrorCode
-
-
-
-
Constructor Detail
-
BigQueryCompositeHandler
public BigQueryCompositeHandler() throws IOException- Throws:
IOException
-
-
Method Detail
-
handleException
public Exception handleException(Exception e)
- Overrides:
handleExceptionin classCompositeHandler
-
handleBigQueryException
public static Exception handleBigQueryException(Exception e)
Transforms BigQuery exceptions into AthenaConnectorException with appropriate error code. Maps BigQuery error codes to FederationSourceErrorCode for better customer experience. Returns other exceptions unchanged.- Parameters:
e- The exception to handle- Returns:
- The transformed exception or original exception
-
-