Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🍒][PLUGIN-1855] Add DBErrorDetailsProvider #1919

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ public class StructuredRecordUtils {
* @param input {@link StructuredRecord}
* @param fieldCase {@link FieldCase}
* @return {@link StructuredRecord} which contains field names confirming to the {@link FieldCase} passed in
* @throws Exception if there is a conflict in the field names while converting the case
*/
public static StructuredRecord convertCase(StructuredRecord input, FieldCase fieldCase) throws Exception {
public static StructuredRecord convertCase(StructuredRecord input, FieldCase fieldCase) {
if (fieldCase.equals(FieldCase.NONE)) {
return input;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import io.cdap.cdap.etl.api.batch.BatchSink;
import io.cdap.cdap.etl.api.batch.BatchSinkContext;
import io.cdap.cdap.etl.api.connector.Connector;
import io.cdap.cdap.etl.api.exception.ErrorDetailsProviderSpec;
import io.cdap.plugin.DBManager;
import io.cdap.plugin.DBRecord;
import io.cdap.plugin.FieldCase;
Expand All @@ -50,6 +51,7 @@
import io.cdap.plugin.common.db.DBUtils;
import io.cdap.plugin.db.batch.TransactionIsolationLevel;
import io.cdap.plugin.db.common.DBBaseConfig;
import io.cdap.plugin.db.common.DBErrorDetailsProvider;
import io.cdap.plugin.db.common.FQNGenerator;
import io.cdap.plugin.db.connector.DBConnector;
import io.cdap.plugin.db.connector.DBConnectorConfig;
Expand Down Expand Up @@ -133,7 +135,8 @@ public void prepareRun(BatchSinkContext context) {
} finally {
DBUtils.cleanup(driverClass);
}

// set error details provider
context.setErrorDetailsProvider(new ErrorDetailsProviderSpec(DBErrorDetailsProvider.class.getName()));
context.addOutput(Output.of(dbSinkConfig.getReferenceName(),
new DBOutputFormatProvider(dbSinkConfig, driverClass, context.getArguments())));

Expand All @@ -152,7 +155,7 @@ public void initialize(BatchRuntimeContext context) throws Exception {
}

@Override
public void transform(StructuredRecord input, Emitter<KeyValue<DBRecord, NullWritable>> emitter) throws Exception {
public void transform(StructuredRecord input, Emitter<KeyValue<DBRecord, NullWritable>> emitter) {
// Create StructuredRecord that only has the columns in this.columns
List<Schema.Field> outputFields = new ArrayList<>();
for (String column : columns) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import io.cdap.cdap.etl.api.batch.BatchSource;
import io.cdap.cdap.etl.api.batch.BatchSourceContext;
import io.cdap.cdap.etl.api.connector.Connector;
import io.cdap.cdap.etl.api.exception.ErrorDetailsProviderSpec;
import io.cdap.plugin.ConnectionConfig;
import io.cdap.plugin.DBManager;
import io.cdap.plugin.DBRecord;
Expand All @@ -50,6 +51,7 @@
import io.cdap.plugin.common.db.DriverCleanup;
import io.cdap.plugin.db.batch.TransactionIsolationLevel;
import io.cdap.plugin.db.common.DBBaseConfig;
import io.cdap.plugin.db.common.DBErrorDetailsProvider;
import io.cdap.plugin.db.common.FQNGenerator;
import io.cdap.plugin.db.connector.DBConnector;
import io.cdap.plugin.db.connector.DBConnectorConfig;
Expand All @@ -67,7 +69,6 @@
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.Properties;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -129,8 +130,9 @@ public void configurePipeline(PipelineConfigurer pipelineConfigurer) {
} catch (IllegalAccessException | InstantiationException e) {
collector.addFailure(String.format("Failed to instantiate JDBC driver: %s", e.getMessage()), null);
} catch (SQLException e) {
collector.addFailure(
String.format("Encountered SQL error while getting query schema: %s", e.getMessage()), null);
collector.addFailure(String.format(
"Encountered SQL error while getting query schema with sqlState: '%s', errorCode: '%s', errorMessage: %s",
e.getSQLState(), e.getErrorCode(), e.getMessage()), null);
}
}
}
Expand Down Expand Up @@ -191,6 +193,8 @@ public void prepareRun(BatchSourceContext context) {

// Create the external dataset before setting context properties
emitLineage(context);
// set error details provider
context.setErrorDetailsProvider(new ErrorDetailsProviderSpec(DBErrorDetailsProvider.class.getName()));
context.setInput(Input.of(sourceConfig.getReferenceName(),
new SourceInputFormatProvider(DataDrivenETLDBInputFormat.class, hConf)));
}
Expand All @@ -202,7 +206,7 @@ public void initialize(BatchRuntimeContext context) throws Exception {
}

@Override
public void transform(KeyValue<LongWritable, DBRecord> input, Emitter<StructuredRecord> emitter) throws Exception {
public void transform(KeyValue<LongWritable, DBRecord> input, Emitter<StructuredRecord> emitter) {
emitter.emit(StructuredRecordUtils.convertCase(
input.getValue().getRecord(), FieldCase.toFieldCase(sourceConfig.getColumnNameCase())));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
/*
* Copyright © 2025 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package io.cdap.plugin.db.common;

import com.google.common.base.Strings;
import com.google.common.base.Throwables;
import io.cdap.cdap.api.exception.ErrorCategory;
import io.cdap.cdap.api.exception.ErrorCodeType;
import io.cdap.cdap.api.exception.ErrorType;
import io.cdap.cdap.api.exception.ErrorUtils;
import io.cdap.cdap.api.exception.ProgramFailureException;
import io.cdap.cdap.etl.api.exception.ErrorContext;
import io.cdap.cdap.etl.api.exception.ErrorDetailsProvider;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* A custom ErrorDetailsProvider for Database plugins.
*/
public class DBErrorDetailsProvider implements ErrorDetailsProvider {

private static final Map<String, ErrorType> ERROR_CODE_TO_ERROR_TYPE;
private static final Map<String, ErrorCategory> ERROR_CODE_TO_ERROR_CATEGORY;
private static final String ERROR_MESSAGE_FORMAT = "Error occurred in the phase: '%s'. Error message: %s";

static {
// https://en.wikipedia.org/wiki/SQLSTATE
ERROR_CODE_TO_ERROR_TYPE = new HashMap<>();
ERROR_CODE_TO_ERROR_TYPE.put("01", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("02", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("07", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("08", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("09", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0A", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("0D", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0E", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0F", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0K", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0L", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0M", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0N", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0P", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0S", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0T", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0U", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0V", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0W", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0X", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0Y", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("0Z", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("10", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("20", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("21", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("22", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("23", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("24", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("25", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("26", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("27", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("28", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("2B", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("2C", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("2D", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("2E", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("2F", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("2H", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("30", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("33", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("34", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("35", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("36", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("38", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("39", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("3B", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("3C", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("3D", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("3F", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("40", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("42", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("44", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("45", ErrorType.USER);
ERROR_CODE_TO_ERROR_TYPE.put("46", ErrorType.SYSTEM);
ERROR_CODE_TO_ERROR_TYPE.put("HW", ErrorType.SYSTEM);

ERROR_CODE_TO_ERROR_CATEGORY = new HashMap<>();
ErrorCategory.ErrorCategoryEnum plugin = ErrorCategory.ErrorCategoryEnum.PLUGIN;
ERROR_CODE_TO_ERROR_CATEGORY.put("01", new ErrorCategory(plugin, "DB Warning"));
ERROR_CODE_TO_ERROR_CATEGORY.put("02", new ErrorCategory(plugin, "DB No Data"));
ERROR_CODE_TO_ERROR_CATEGORY.put("07", new ErrorCategory(plugin, "DB Dynamic SQL error"));
ERROR_CODE_TO_ERROR_CATEGORY.put("08", new ErrorCategory(plugin, "DB Connection Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("09", new ErrorCategory(plugin, "DB Triggered Action Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0A", new ErrorCategory(plugin, "DB Feature Not Supported"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0D", new ErrorCategory(plugin, "DB Invalid Target Type Specification"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0E", new ErrorCategory(plugin, "DB Invalid Schema Name List Specification"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0F", new ErrorCategory(plugin, "DB Locator Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0K", new ErrorCategory(plugin, "DB Resignal When Handler Not Active"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0L", new ErrorCategory(plugin, "DB Invalid Grantor"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0M", new ErrorCategory(plugin, "DB Invalid SQL-Invoked Procedure Reference"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0N", new ErrorCategory(plugin, "DB SQL/XML Mapping Error"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0P", new ErrorCategory(plugin, "DB Invalid Role Specification"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0S", new ErrorCategory(plugin, "DB Invalid Transform Group Name Specification"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0T",
new ErrorCategory(plugin, "DB Target Table Disagrees With Cursor Specification"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0U", new ErrorCategory(plugin, "DB Attempt To Assign To Non-Updatable Column"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0V", new ErrorCategory(plugin, "DB Attempt To Assign To Ordering Column"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0W", new ErrorCategory(plugin, "DB Prohibited Statement Encountered"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0X", new ErrorCategory(plugin, "DB Invalid Foreign Server Specification"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0Y", new ErrorCategory(plugin, "DB Pass-Through Specific Condition"));
ERROR_CODE_TO_ERROR_CATEGORY.put("0Z", new ErrorCategory(plugin, "DB Diagnostics Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("10", new ErrorCategory(plugin, "DB XQuery Error"));
ERROR_CODE_TO_ERROR_CATEGORY.put("20", new ErrorCategory(plugin, "DB Case Not Found For Case Statement"));
ERROR_CODE_TO_ERROR_CATEGORY.put("21", new ErrorCategory(plugin, "DB Cardinality Violation"));
ERROR_CODE_TO_ERROR_CATEGORY.put("22", new ErrorCategory(plugin, "DB Data Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("23", new ErrorCategory(plugin, "DB Integrity Constraint Violation"));
ERROR_CODE_TO_ERROR_CATEGORY.put("24", new ErrorCategory(plugin, "DB Invalid Cursor State"));
ERROR_CODE_TO_ERROR_CATEGORY.put("25", new ErrorCategory(plugin, "DB Invalid Transaction State"));
ERROR_CODE_TO_ERROR_CATEGORY.put("26", new ErrorCategory(plugin, "DB Invalid SQL Statement Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("27", new ErrorCategory(plugin, "DB Triggered Data Change Violation"));
ERROR_CODE_TO_ERROR_CATEGORY.put("28", new ErrorCategory(plugin, "DB Invalid Authorization Specification"));
ERROR_CODE_TO_ERROR_CATEGORY.put("2B", new ErrorCategory(plugin, "DB Dependent Privilege Descriptors Still Exist"));
ERROR_CODE_TO_ERROR_CATEGORY.put("2C", new ErrorCategory(plugin, "DB Invalid Character Set Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("2D", new ErrorCategory(plugin, "DB Invalid Transaction Termination"));
ERROR_CODE_TO_ERROR_CATEGORY.put("2E", new ErrorCategory(plugin, "DB Invalid Connection Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("2F", new ErrorCategory(plugin, "DB SQL Routine Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("2H", new ErrorCategory(plugin, "DB Invalid Collation Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("30", new ErrorCategory(plugin, "DB Invalid SQL Statement Identifier"));
ERROR_CODE_TO_ERROR_CATEGORY.put("33", new ErrorCategory(plugin, "DB Invalid SQL Descriptor Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("34", new ErrorCategory(plugin, "DB Invalid Cursor Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("35", new ErrorCategory(plugin, "DB Invalid Condition Number"));
ERROR_CODE_TO_ERROR_CATEGORY.put("36", new ErrorCategory(plugin, "DB Cursor Sensitivity Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("38", new ErrorCategory(plugin, "DB External Routine Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("39", new ErrorCategory(plugin, "DB External Routine Invocation Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("3B", new ErrorCategory(plugin, "DB Savepoint Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("3C", new ErrorCategory(plugin, "DB Ambiguous Cursor Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("3D", new ErrorCategory(plugin, "DB Invalid Catalog Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("3F", new ErrorCategory(plugin, "DB Invalid Schema Name"));
ERROR_CODE_TO_ERROR_CATEGORY.put("40", new ErrorCategory(plugin, "DB Transaction Rollback"));
ERROR_CODE_TO_ERROR_CATEGORY.put("42", new ErrorCategory(plugin, "DB Syntax Error or Access Rule Violation"));
ERROR_CODE_TO_ERROR_CATEGORY.put("44", new ErrorCategory(plugin, "DB With Check Option Violation"));
ERROR_CODE_TO_ERROR_CATEGORY.put("45", new ErrorCategory(plugin, "DB Unhandled User-Defined Exception"));
ERROR_CODE_TO_ERROR_CATEGORY.put("46", new ErrorCategory(plugin, "DB JAVA DDL"));
ERROR_CODE_TO_ERROR_CATEGORY.put("HW", new ErrorCategory(plugin, "DB Datalink Exception"));
}

public ProgramFailureException getExceptionDetails(Exception e, ErrorContext errorContext) {
List<Throwable> causalChain = Throwables.getCausalChain(e);
for (Throwable t : causalChain) {
if (t instanceof ProgramFailureException) {
// if causal chain already has program failure exception, return null to avoid double wrap.
return null;
}
if (t instanceof SQLException) {
return getProgramFailureException((SQLException) t, errorContext);
}
if (t instanceof IllegalArgumentException) {
return getProgramFailureException((IllegalArgumentException) t, errorContext, ErrorType.USER);
}
if (t instanceof IllegalStateException || t instanceof InstantiationException) {
return getProgramFailureException((Exception) t, errorContext, ErrorType.SYSTEM);
}
}
return null;
}

private ProgramFailureException getProgramFailureException(SQLException e, ErrorContext errorContext) {
String errorMessage = e.getMessage();
String sqlState = e.getSQLState();
int errorCode = e.getErrorCode();
String errorMessageWithDetails =
String.format("Error occurred in the phase: '%s' with sqlState: '%s', errorCode: '%s', errorMessage: %s",
errorContext.getPhase(), sqlState, errorCode, errorMessage);
String externalDocumentationLink = getExternalDocumentationLink();
if (!Strings.isNullOrEmpty(externalDocumentationLink)) {
if (!errorMessage.endsWith(".")) {
errorMessage = errorMessage + ".";
}
errorMessage = String.format("%s For more details, see %s", errorMessage, externalDocumentationLink);
}
return ErrorUtils.getProgramFailureException(
Strings.isNullOrEmpty(sqlState) ? new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN) :
getErrorCategoryFromSqlState(sqlState), errorMessage, errorMessageWithDetails,
getErrorTypeFromErrorCodeAndSqlState(errorCode, sqlState), true, ErrorCodeType.SQLSTATE, sqlState,
externalDocumentationLink, e);
}

private ProgramFailureException getProgramFailureException(Exception e, ErrorContext errorContext,
ErrorType errorType) {
String errorMessage = e.getMessage();
return ErrorUtils.getProgramFailureException(new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN),
errorMessage, String.format(ERROR_MESSAGE_FORMAT, errorContext.getPhase(), errorMessage), errorType, false, e);
}

/**
* Get the external documentation link for the client errors if available.
*
* @return The external documentation link as a {@link String}.
*/
protected String getExternalDocumentationLink() {
return "https://en.wikipedia.org/wiki/SQLSTATE";
}

/**
* Get the {@link ErrorType} for the given error code and SQL state.
* Override this method to provide custom error types based on the error code and SQL state.
*
* @param errorCode The error code.
* @param sqlState The SQL state.
* @return The {@link ErrorType} for the given error code and SQL state.
*/
protected ErrorType getErrorTypeFromErrorCodeAndSqlState(int errorCode, String sqlState) {
if (!Strings.isNullOrEmpty(sqlState) && sqlState.length() >= 2 &&
ERROR_CODE_TO_ERROR_TYPE.containsKey(sqlState.substring(0, 2))) {
return ERROR_CODE_TO_ERROR_TYPE.get(sqlState.substring(0, 2));
}
return ErrorType.UNKNOWN;
}

/**
* Get the {@link ErrorCategory} for the given SQL state.
* Implements generic error categories based on the SQL state.
* See <a href="https://en.wikipedia.org/wiki/SQLSTATE">SQLSTATE</a> for more information.
* Override this method to provide custom error categories based on the SQL state.
*
* @param sqlState The SQL state.
* @return The {@link ErrorCategory} for the given SQL state.
*/
protected ErrorCategory getErrorCategoryFromSqlState(String sqlState) {
if (!Strings.isNullOrEmpty(sqlState) && sqlState.length() >= 2 &&
ERROR_CODE_TO_ERROR_CATEGORY.containsKey(sqlState.substring(0, 2))) {
return ERROR_CODE_TO_ERROR_CATEGORY.get(sqlState.substring(0, 2));
}
return new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN);
}
}
Loading
Loading