feat: add test connection api (#4)

This commit is contained in:
vran
2022-01-26 14:17:10 +08:00
committed by GitHub
parent 604cb4ab47
commit 4bf7f5161a
11 changed files with 115 additions and 21 deletions

View File

@@ -46,4 +46,11 @@ public class DatabasirException extends RuntimeException {
this.errCode = errorCodeMessage.getErrCode();
this.errMessage = errorCodeMessage.getErrMessage();
}
public DatabasirException(DatabasirErrors errorCodeMessage, String overrideMessage, Throwable cause) {
super(overrideMessage, cause);
this.errorCodeMessage = errorCodeMessage;
this.errCode = errorCodeMessage.getErrCode();
this.errMessage = overrideMessage;
}
}