Interface ExceptionCodeProvider
-
public interface ExceptionCodeProviderOne of the provider methods are called when a
ProcessEngineExceptionoccurs. The default implementation provides the built-in exception codes.You can disable the built-in or/and additionally register a custom provider via the
ProcessEngineConfigurationImplusing the following properties:disableExceptionCode- disables the whole featuredisableBuiltinExceptionCodeProvider- only disables the built-in provider and allows overriding reserved exception codescustomExceptionCodeProvider- provide custom exception codes
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default IntegerprovideCode(SQLException sqlException)Called when aSQLExceptionoccurs.default IntegerprovideCode(ProcessEngineException processEngineException)Called when aProcessEngineExceptionoccurs.
-
-
-
Method Detail
-
provideCode
default Integer provideCode(ProcessEngineException processEngineException)
Called when a
ProcessEngineExceptionoccurs.Provides the exception code that can be determined based on the passed
ProcessEngineException. Only called when no other provider method is called.- Parameters:
processEngineException- that occurred.- Returns:
- an integer value representing the error code. When returning
null, theBuiltinExceptionCode.FALLBACKgets assigned to the exception.
-
provideCode
default Integer provideCode(SQLException sqlException)
Called when a
SQLExceptionoccurs.Provides the exception code that can be determined based on the passed
SQLException. The error code is assigned to the top levelProcessEngineException. Only called when no other provider method is called.- Parameters:
sqlException- that occurred.- Returns:
- an integer value representing the error code. When returning
null, theBuiltinExceptionCode.FALLBACKgets assigned to the exception.
-
-