public class SQLExceptionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
unwrapAndCheckForCode(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.
|
public static boolean unwrapAndCheckForCode(Throwable t, int errorCode)
t - The SQLException to checkerrorCode - The error code to check for.Copyright © 2023. All rights reserved.