修改异常信息。

feature/net-util
ZhouXY108 2023-06-27 01:09:20 +08:00
parent f1dcf0beba
commit bc80be1b89
1 changed files with 2 additions and 2 deletions

View File

@ -39,11 +39,11 @@ import xyz.zhouxy.plusone.commons.util.OptionalUtil;
public class DbRecord extends AbstractMapWrapper<String, Object, DbRecord> { public class DbRecord extends AbstractMapWrapper<String, Object, DbRecord> {
public DbRecord() { public DbRecord() {
super(new HashMap<>(), k -> Assert.isNotBlank(k, "Key can not be null."), null); super(new HashMap<>(), k -> Assert.isNotBlank(k, "Key must has text."), null);
} }
public DbRecord(Map<String, Object> map) { public DbRecord(Map<String, Object> map) {
super(map, k -> Assert.isNotBlank(k, "Key can not be null."), null); super(map, k -> Assert.isNotBlank(k, "Key must has text."), null);
} }
public Optional<String> getValueAsString(String key) { public Optional<String> getValueAsString(String key) {