[resteasy] Doubt about request exception

Fabio Ebner fabio.ebner at lumera.com.br
Mon Sep 12 08:38:29 EDT 2016


1 - How can I get the Exception message from my server? in my server(spring
boot restController) I return one message when Exception with this code:

@ResponseStatus(HttpStatus.NOT_FOUND)
public class UsuarioNotFoundException extends  RuntimeException{
    public UsuarioNotFoundException(String email) {
        super("Usuário não encontrado: " + email + ", Favor verificar
o email ou a senha informados");
    }
}

So how can I get this custom error message with RestEasy client?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/resteasy/attachments/20160912/a7eb1481/attachment.html 


More information about the resteasy mailing list