Here are the examples of the java api com.blade.validator.exception.ValidateException.getErrMsg() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
15
Source : GolbalExceptionHandler.java
with MIT License
from tfssweb
with MIT License
from tfssweb
@Override
public void handle(Exception e) {
if (e instanceof ValidateException) {
ValidateException validateException = (ValidateException) e;
String msg = validateException.getErrMsg();
WebContext.response().json(RestResponse.fail(msg));
} else {
super.handle(e);
}
}