Package io.tesler.core.util
Class SQLExceptions
- java.lang.Object
-
- io.tesler.core.util.SQLExceptions
-
public class SQLExceptions extends Object
-
-
Constructor Summary
Constructors Constructor Description SQLExceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasErrorCode(SQLException ex, int code)
static boolean
isChildRecordsFound(Throwable ex)
static boolean
isNotNullViolation(Throwable ex)
static boolean
isOra(Throwable ex, int code)
static boolean
isParentRecordNotFound(Throwable ex)
static boolean
isUniqueConstraintViolation(Throwable ex)
-
-
-
Method Detail
-
isUniqueConstraintViolation
public static boolean isUniqueConstraintViolation(Throwable ex)
-
isNotNullViolation
public static boolean isNotNullViolation(Throwable ex)
-
isChildRecordsFound
public static boolean isChildRecordsFound(Throwable ex)
-
isParentRecordNotFound
public static boolean isParentRecordNotFound(Throwable ex)
-
isOra
public static boolean isOra(Throwable ex, int code)
-
hasErrorCode
public static boolean hasErrorCode(SQLException ex, int code)
-
-