diff --git a/src/main/java/io/cdap/plugin/snowflake/common/SnowflakeErrorDetailsProvider.java b/src/main/java/io/cdap/plugin/snowflake/common/SnowflakeErrorDetailsProvider.java index 777c33d..db78d07 100644 --- a/src/main/java/io/cdap/plugin/snowflake/common/SnowflakeErrorDetailsProvider.java +++ b/src/main/java/io/cdap/plugin/snowflake/common/SnowflakeErrorDetailsProvider.java @@ -111,7 +111,7 @@ private ProgramFailureException getProgramFailureException(URISyntaxException e, String errorMessageFormat = "Error occurred in the phase: '%s'. Error message: %s"; return ErrorUtils.getProgramFailureException(new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN), errorMessage, - String.format(errorMessageFormat, errorContext.getPhase(), errorMessage), ErrorType.SYSTEM, false, e); + String.format(errorMessageFormat, errorContext.getPhase(), errorMessage), ErrorType.USER, false, e); } /** @@ -126,7 +126,7 @@ private ProgramFailureException getProgramFailureException(SchemaParseException String errorMessageFormat = "Error occurred in the phase: '%s'. Error message: %s"; return ErrorUtils.getProgramFailureException(new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN), errorMessage, - String.format(errorMessageFormat, errorContext.getPhase(), errorMessage), ErrorType.SYSTEM, false, e); + String.format(errorMessageFormat, errorContext.getPhase(), errorMessage), ErrorType.USER, false, e); } /** @@ -141,7 +141,7 @@ private ProgramFailureException getProgramFailureException(UnexpectedFormatExcep String errorMessageFormat = "Error occurred in the phase: '%s'. Error message: %s"; return ErrorUtils.getProgramFailureException(new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN), errorMessage, - String.format(errorMessageFormat, errorContext.getPhase(), errorMessage), ErrorType.SYSTEM, false, e); + String.format(errorMessageFormat, errorContext.getPhase(), errorMessage), ErrorType.USER, false, e); } /**