com.blade.validator.exception.ValidateException

Here are the examples of the java api com.blade.validator.exception.ValidateException taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

17 Source : GolbalExceptionHandler.java
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);
    }
}