Class SQLExceptionUtils
java.lang.Object
com.amazonaws.secretsmanager.util.SQLExceptionUtils
SQL Exception Utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanunwrapAndCheckForCode(Throwable t, int errorCode) Checks the thrown exception and all parent exceptions and returns true if a SQLException with a matching error code is found.
-
Method Details
-
unwrapAndCheckForCode
Checks the thrown exception and all parent exceptions and returns true if a SQLException with a matching error code is found.- Parameters:
t- The SQLException to checkerrorCode- The error code to check for.- Returns:
- True if the exception or any parent exception is a SQL Exception and getErrorCode matches the error code. Otherwise, false.
-