-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle MetaException with glue AccessDeniedException (#410)
* handleGeneralException should handle MetaException with AccessDeniedException properly Signed-off-by: Louis Chu <[email protected]> * Revise comments Signed-off-by: Louis Chu <[email protected]> --------- Signed-off-by: Louis Chu <[email protected]>
- Loading branch information
Showing
3 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
flint-core/src/main/java/org/opensearch/flint/core/logging/ExceptionMessages.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.flint.core.logging | ||
|
||
// Define constants for common error messages | ||
object ExceptionMessages { | ||
val SyntaxErrorPrefix = "Syntax error" | ||
val S3ErrorPrefix = "Fail to read data from S3. Cause" | ||
val GlueErrorPrefix = "Fail to read data from Glue. Cause" | ||
val QueryAnalysisErrorPrefix = "Fail to analyze query. Cause" | ||
val SparkExceptionErrorPrefix = "Spark exception. Cause" | ||
val QueryRunErrorPrefix = "Fail to run query. Cause" | ||
val GlueAccessDeniedMessage = "Access denied in AWS Glue service. Please check permissions." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters