public class SqlException extends RuntimeException
| Constructor and Description |
|---|
SqlException(String message)
构造函数
|
| Modifier and Type | Method and Description |
|---|---|
static SqlException |
columnNullPointer(String table,
String column)
列为空
|
static SqlException |
columnValueNotFound()
列值不存在
|
static SqlException |
idAutoIncrease(String table,
String id)
自增长字段不能插入
|
static SqlException |
idInvalidUpdate(String table,
String id)
主键不能被更新
|
static SqlException |
idNotFound(String table)
id不存在
|
static SqlException |
idNullPointer(String table,
String id)
id为空
|
static SqlException |
idValueNotFound()
id不存在
|
static SqlException |
multiIdNotSupported(String table)
不支持多个id
|
static SqlException |
tableNotMatched(String exceptTable,
String actualTable)
表名不匹配
|
static SqlException |
uniqueKeyValueNotFound()
Unique Key 信息不存在
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SqlException(String message)
message - 异常说明public static SqlException columnValueNotFound()
public static SqlException idInvalidUpdate(String table, String id)
table - 表id - 主键public static SqlException idNotFound(String table)
table - 表public static SqlException idNullPointer(String table, String id)
table - 表id - 主键public static SqlException idValueNotFound()
public static SqlException uniqueKeyValueNotFound()
public static SqlException columnNullPointer(String table, String column)
table - 表名column - 列名public static SqlException idAutoIncrease(String table, String id)
table - 表名id - 列名public static SqlException multiIdNotSupported(String table)
table - 表public static SqlException tableNotMatched(String exceptTable, String actualTable)
exceptTable - 预期表名actualTable - 实际表名Copyright © 2020 IBIT程序猿. All rights reserved.